mirror of
https://github.com/jazzband/django-auditlog.git
synced 2026-03-16 22:20:26 +00:00
Update auditlog/middleware.py
This commit is contained in:
parent
693a5092be
commit
908fc4a425
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ class AuditlogMiddleware:
|
|||
settings, "AUDITLOG_DISABLE_REMOTE_ADDR", False
|
||||
)
|
||||
if not isinstance(self.disable_remote_addr, bool):
|
||||
raise ValueError("Setting 'AUDITLOG_DISABLE_REMOTE_ADDR' must be a boolean")
|
||||
raise TypeError("Setting 'AUDITLOG_DISABLE_REMOTE_ADDR' must be a boolean")
|
||||
|
||||
@staticmethod
|
||||
def _get_remote_addr(request):
|
||||
|
|
|
|||
Loading…
Reference in a new issue