Note FieldTracker signal rules in documentation

This commit is contained in:
Trey Hunner 2014-05-13 14:22:02 -07:00
parent 3496fe4291
commit 6821051141

View file

@ -210,3 +210,16 @@ An example using the model specified above:
>>> a.body = 'First post!'
>>> a.title_tracker.changed()
{'title': None}
Checking changes using signals
------------------------------
The field tracker methods may also be used in ``pre_save`` and ``post_save``
signal handlers to identify field changes on model save.
.. NOTE::
Due to the implementation of ``FieldTracker``, ``post_save`` signal
handlers relying on field tracker methods should only be registered after
model creation.