From b7e5121684afa36739c1aa9bbb96401645dbc417 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Mon, 8 Aug 2005 18:29:02 +0000 Subject: 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 --- docs/model-api.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs') 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 -------------------- -- cgit v1.3