Skip to content

Commit

Permalink
Note importance of setter for user recording
Browse files Browse the repository at this point in the history
  • Loading branch information
treyhunner committed Feb 7, 2014
1 parent 19d4069 commit 5f40555
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,5 @@ referencing the ``changed_by`` field:
@_history_user.setter
def _history_user(self, value):
self.changed_by = value
Admin integration requires that you use a ``_history_user.setter`` attribute with your custom ``_history_user`` property (see :ref:`admin_integration`).
1 change: 1 addition & 0 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Django tutorial:
Now all changes to ``Poll`` and ``Choice`` model instances will be tracked in
the database.

.. _admin_integration:

Integration with Django Admin
-----------------------------
Expand Down

0 comments on commit 5f40555

Please sign in to comment.