Another django 2.2 update
authorMagnus Hagander <magnus@hagander.net>
Fri, 10 Apr 2020 16:19:15 +0000 (18:19 +0200)
committerMagnus Hagander <magnus@hagander.net>
Fri, 10 Apr 2020 16:19:15 +0000 (18:19 +0200)
pgcommitfest/auth.py

index 4ae553b2f78f5080e6ca577c57fb9e95f87f8fbf..87ffb0b2adbcd45d956b7f625dc9ae29c7807bfa 100644 (file)
@@ -72,7 +72,7 @@ def login(request):
 # Handle logout requests by logging out of this site and then
 # redirecting to log out from the main site as well.
 def logout(request):
-    if request.user.is_authenticated():
+    if request.user.is_authenticated:
         django_logout(request)
     return HttpResponseRedirect("%slogout/" % settings.PGAUTH_REDIRECT)