summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Hagander2020-04-10 16:19:15 +0000
committerMagnus Hagander2020-04-10 16:19:15 +0000
commit5e3b6297580bca40973e0b446035286a70bf9ad5 (patch)
tree24020e1e937c503bac53b65ecfd96a9dd1ec1670
parentf67aa10a515428b1e63bc4f24e1f85ee9fe2085b (diff)
Another django 2.2 update
-rw-r--r--pgcommitfest/auth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pgcommitfest/auth.py b/pgcommitfest/auth.py
index 4ae553b..87ffb0b 100644
--- a/pgcommitfest/auth.py
+++ b/pgcommitfest/auth.py
@@ -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)