diff --git a/docs/advanced.rst b/docs/advanced.rst index 40b8584cf..654acde98 100644 --- a/docs/advanced.rst +++ b/docs/advanced.rst @@ -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`). diff --git a/docs/usage.rst b/docs/usage.rst index 3e078b281..15d2ec59f 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -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 -----------------------------