Commit 7e8985e5 authored by Michaël Paulon's avatar Michaël Paulon
Browse files

user.is_authenticated is bool and note callable

parent 1c3efc10
......@@ -14,6 +14,6 @@ class NKSessionExpiryMiddleware:
self.get_response = get_response
def __call__(self, request):
if request.user.is_authenticated():
if request.user.is_authenticated:
request.session.set_expiry(settings.SESSION_COOKIE_AGE)
return self.get_response(request)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment