mirror of
https://github.com/jazzband/django-auditlog.git
synced 2026-05-11 00:53:10 +00:00
Fixes #31
This commit is contained in:
parent
32f5d8a823
commit
4dc11ab6fb
1 changed files with 1 additions and 1 deletions
|
|
@ -71,4 +71,4 @@ class AuditlogMiddleware(object):
|
|||
if sender == LogEntry and isinstance(user, auth_user_model) and instance.actor is None:
|
||||
instance.actor = user
|
||||
if hasattr(threadlocal, 'auditlog'):
|
||||
instance.remote_addr = threading.local().auditlog['remote_addr']
|
||||
instance.remote_addr = threadlocal.auditlog['remote_addr']
|
||||
|
|
|
|||
Loading…
Reference in a new issue