We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f41242d commit ba364a8Copy full SHA for ba364a8
docs/advanced.rst
@@ -392,7 +392,7 @@ source model. This is possible by combining the ``bases`` functionality with the
392
# define your signal handler/callback anywhere outside of models.py
393
def add_history_ip_address(sender, **kwargs):
394
history_instance = kwargs['history_instance']
395
- # thread.request for use only when the simple_history middleware is enabled
+ # thread.request for use only when the simple_history middleware is on and enabled
396
history_instance.ip_address = HistoricalRecords.thread.request.META['REMOTE_ADDR']
397
398
0 commit comments