#12313: Mention some cautions in section overriding delete() ----------------------------------+----------------------------------------- Reporter: FunkyELF | Owner: nobody Status: new | Milestone: Component: Documentation | Version: 1.1 Keywords: delete admin signals | Stage: Unreviewed Has_patch: 0 | ----------------------------------+----------------------------------------- I strongly feel that this section...
http://docs.djangoproject.com/en/dev/topics/db/models/#overriding- predefined-model-methods ... should have a note or something like the following. Note that the delete() method for an object is not necessarily called when deleting a queryset containing that object as explained in http://docs.djangoproject.com/en/dev/topics/db/queries/#deleting-objects. To ensure a customized delete method gets called have a look at http://docs.djangoproject.com/en/dev/topics/signals/#topics-signals Also note that when deleting an object from the built in admin interface related objects may be deleted in this way and may not call the overridden delete() method. -- Ticket URL: <http://code.djangoproject.com/ticket/12313> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.