mirror of
https://github.com/jazzband/django-auditlog.git
synced 2026-05-13 01:53:10 +00:00
debug
This commit is contained in:
parent
a2bf5dbfb9
commit
64df4b74ba
1 changed files with 5 additions and 3 deletions
|
|
@ -42,10 +42,12 @@ class AuditlogMiddleware:
|
|||
|
||||
@staticmethod
|
||||
def _get_actor(request):
|
||||
print(" ACTOR DEBUG ")
|
||||
print(request)
|
||||
|
||||
import madbg
|
||||
|
||||
madbg.set_trace(ip="0.0.0.0", port=8889)
|
||||
|
||||
user = getattr(request, "user", None)
|
||||
print(user)
|
||||
if isinstance(user, get_user_model()) and user.is_authenticated:
|
||||
return user
|
||||
return None
|
||||
|
|
|
|||
Loading…
Reference in a new issue