Code

Changes between Initial Version and Version 5 of Ticket #6915


Ignore:
Timestamp:
06/16/08 14:11:12 (6 years ago)
Author:
ramiro
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6915

    • Property Patch needs improvement set
    • Property Component changed from Core framework to Database wrapper
    • Property Needs tests unset
    • Property Milestone changed from to 1.0
    • Property Keywords qsrf-cleanup added
    • Property Needs documentation set
    • Property Has patch set
    • Property Triage Stage changed from Unreviewed to Design decision needed
  • Ticket #6915 – Description

    initial v5  
    11If you override an objects delete method: 
    22 
     3{{{ 
    34object.something_set.all().delete() 
     5}}} 
    46 
    57does not do the same as: 
    68 
     9{{{ 
    710for something in object.something_set.all(): 
    811    something.delete() 
     12}}} 
    913 
    1014The new delete method is never called and hence any associated cleanup or audit code are never called. This comes to light when you delete an object which in turn deletes related objects.