Opened 10 years ago

Closed 10 years ago

#23056 closed Bug (invalid)

Queryset.delete always triggers pre/post delete signal?

Reported by: flisky Owned by: nobody
Component: Documentation Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

It seems that the doc https://docs.djangoproject.com/en/dev/topics/db/queries/#deleting-objects has not synced with the commit https://github.com/django/django/commit/1cd6e04c.

Change History (2)

comment:1 by Claude Paroz, 10 years ago

Sorry, but could you please be a little more specific about what you want to see changed in that documentation?

comment:2 by flisky, 10 years ago

Resolution: invalid
Status: newclosed

It's much clear for me to read it again with the queryset.delete API reference.
If I have to say, I hope the following two mirror improvements as non-native English reader.

First and most, could when possible be more informative?

Keep in mind that this will, whenever possible (such as not handling cascade nor pre_delete/post_delete signal connected), be executed purely in SQL,

Second, the not necessarily is a little bit confusing for me at first.

and so the delete() methods of individual object instances will not necessarily and never be called during the process.

Thanks!

Note: See TracTickets for help on using tickets.
Back to Top