Changes between Initial Version and Version 1 of Ticket #16818, comment 9
- Timestamp:
- Oct 2, 2011, 8:44:03 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #16818, comment 9
initial v1 5 5 }}} 6 6 7 Inspecting parent_obj.m2m_children.all() shows the new_child_obj (cached), but if the cache is invalidate (eg. start new django shell, or new request) the new_child_obj is absent from parent_obj.m2m_children.all().7 Inspecting parent_obj.m2m_children.all() shows the new_child_obj (cached), but if the cache is invalidated (eg. start new django shell, or new request) the new_child_obj is absent from parent_obj.m2m_children.all(). 8 8 9 9 However, if the parent_obj is explicitly saved after adding the new_child_obj, eg. … … 14 14 }}} 15 15 16 then the new_child_obj is committed to the DB, and present in subsequent requests.16 then the new_child_obj is committed to the DB, and is present in subsequent requests. 17 17 18 This is new behaviour - the explicit parent_obj.save() was not required r16739. I'm not sure if this still qualifies as a bug, or whether it is in fact a fix for a long-standing, incorrect behaviour.18 This is new behaviour - the explicit parent_obj.save() was not required before r16739. I'm not sure if this still qualifies as a bug, or whether it is in fact a fix for a long-standing, incorrect behaviour.