post and pre_delete signal documentation imprecise
|Reported by:||runeh||Owned by:||nobody|
|Has patch:||no||Needs documentation:||yes|
|Needs tests:||no||Patch needs improvement:||no|
The documentation claims that the pre and post_delete signals is "Sent before or after a model’s delete() method is called." ( http://docs.djangoproject.com/en/dev/topics/signals/ ). This is not the case when QuerySet.delete() is used to delete multiple objects. The signals are sent, but the object.delete() method is not called. One case where this happens is in the admin, when selecting multiple objects to delete.
Unsure if this is a documentation bug or if the docs are correct and the behaviour when using QuerySet.delete() is wrong.
Change History (7)
comment:1 Changed 8 years ago by
|Patch needs improvement:||unset|
|Status:||new → closed|