major: update to DjangoLDPv1
This commit is contained in:
parent
88201ee648
commit
e3aa79d83b
@ -20,7 +20,7 @@ class CurrentUserMiddleware:
|
||||
# so no signal handler should be attached
|
||||
return
|
||||
|
||||
if hasattr(request, 'user') and request.user.is_authenticated():
|
||||
if hasattr(request, 'user') and request.user.is_authenticated:
|
||||
user = request.user
|
||||
else:
|
||||
user = None
|
||||
|
Loading…
Reference in New Issue
Block a user