summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2018-05-18 18:08:37 -0400
committerTim Graham <timograham@gmail.com>2018-05-18 18:08:37 -0400
commite038f98bf342af716cf16e38be989c2d0f126797 (patch)
tree870f3c22241d40644f3c4ffab33a8692003a6946 /docs/ref
parent6574167ab8ef1326d363ab9a17f6b5bc4607f08a (diff)
Fixed #29398 -- Doc'd that cascade deletion doesn't call delete() of related models.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/models/fields.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
index adb12aac63..c696b770b3 100644
--- a/docs/ref/models/fields.txt
+++ b/docs/ref/models/fields.txt
@@ -1257,6 +1257,11 @@ The possible values for :attr:`~ForeignKey.on_delete` are found in
Cascade deletes. Django emulates the behavior of the SQL constraint ON
DELETE CASCADE and also deletes the object containing the ForeignKey.
+ :meth:`.Model.delete` isn't called on related models, but the
+ :data:`~django.db.models.signals.pre_delete` and
+ :data:`~django.db.models.signals.post_delete` signals are sent for all
+ deleted objects.
+
* .. attribute:: PROTECT
Prevent deletion of the referenced object by raising