Fixed #15943 -- Documented `raw` argument of pre_save and post_save signals. Thanks, amplivibe.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16432 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jannis Leidel 2011-06-17 15:39:42 +00:00
parent f8a3d87a19
commit 65d8657f7f
1 changed files with 12 additions and 0 deletions

View File

@ -114,6 +114,12 @@ Arguments sent with this signal:
``instance`` ``instance``
The actual instance being saved. The actual instance being saved.
``raw``
A boolean; ``True`` if the model is saved exactly as presented
(i.e. when loading a fixture). One should not query/modify other
records in the database as the database might not be in a
consistent state yet.
.. versionadded:: 1.3 .. versionadded:: 1.3
``using`` ``using``
@ -139,6 +145,12 @@ Arguments sent with this signal:
``created`` ``created``
A boolean; ``True`` if a new record was created. A boolean; ``True`` if a new record was created.
``raw``
A boolean; ``True`` if the model is saved exactly as presented
(i.e. when loading a fixture). One should not query/modify other
records in the database as the database might not be in a
consistent state yet.
.. versionadded:: 1.3 .. versionadded:: 1.3
``using`` ``using``