mirror of
https://github.com/jazzband/django-auditlog.git
synced 2026-03-16 22:20:26 +00:00
commit
06ab0bc8dd
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