Author: timo
Date: 2010-12-27 17:47:14 -0600 (Mon, 27 Dec 2010)
New Revision: 15072

Modified:
   django/branches/releases/1.2.X/docs/topics/db/models.txt
Log:
[1.2.X] Fixed #12313 - Add a note that QuerySet.delete() doesn't necessarily 
call obj.delete(). thanks FunkyELF for the suggestion.

Backport of r15071 from trunk.

Modified: django/branches/releases/1.2.X/docs/topics/db/models.txt
===================================================================
--- django/branches/releases/1.2.X/docs/topics/db/models.txt    2010-12-27 
23:46:06 UTC (rev 15071)
+++ django/branches/releases/1.2.X/docs/topics/db/models.txt    2010-12-27 
23:47:14 UTC (rev 15072)
@@ -751,6 +751,14 @@
 **kwargs`` in your method definitions, you are guaranteed that your
 code will automatically support those arguments when they are added.
 
+.. admonition:: Overriding Delete
+
+    Note that the :meth:`~Model.delete()` method for an object is not
+    necessarily called when :ref:`deleting objects in bulk using a
+    QuerySet<topics-db-queries-delete>`. To ensure customized delete logic
+    gets executed, you can use :data:`~django.db.models.signals.pre_save`
+    and/or :data:`~django.db.models.signals.post_save` signals.
+
 Executing custom SQL
 --------------------
 

-- 
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.

Reply via email to