summaryrefslogtreecommitdiff
path: root/docs/model-api.txt
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-08-08 18:29:02 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-08-08 18:29:02 +0000
commitb7e5121684afa36739c1aa9bbb96401645dbc417 (patch)
treed888e8c1bf3e400292907fe6c94a7f3f8fc8ff36 /docs/model-api.txt
parent03bd1d7ff9bae80694c09b57ca5737cce68b756b (diff)
Fixed #280 -- Added _pre_delete() and _post_delete() hooks. Also updated the docs and added a unit testdjango/core/meta/__init__.py
git-svn-id: http://code.djangoproject.com/svn/django/trunk@432 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/model-api.txt')
-rw-r--r--docs/model-api.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/model-api.txt b/docs/model-api.txt
index dbbe3e2c01..f071c1bfcb 100644
--- a/docs/model-api.txt
+++ b/docs/model-api.txt
@@ -728,6 +728,12 @@ There are a few object methods that have special meaning:
This method is called just after the object is saved to the database. This
could be used to update other tables, update cached information, etc.
+``_pre_delete``
+ Like ``_pre_save``, but for deletion.
+
+``_post_delete``
+ Like ``_post_save``, but for deletion.
+
Module-level methods
--------------------