Changes between Initial Version and Version 5 of Ticket #6915


Ignore:
Timestamp:
Jun 16, 2008, 4:11:12 PM (16 years ago)
Author:
Ramiro Morales
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6915

    • Property Component Core frameworkDatabase wrapper
    • Property Has patch set
    • Property Patch needs improvement set
    • Property Needs documentation set
    • Property Triage Stage UnreviewedDesign decision needed
    • Property Keywords qsrf-cleanup added
    • Property Milestone1.0
  • 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.
Back to Top