summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMagnus Hagander2020-03-31 21:40:23 +0000
committerMagnus Hagander2020-04-03 17:05:26 +0000
commitccb1282531e94b7895be0b170bb49120a4843437 (patch)
treec50465c461fcfbdb199f4def7e40850adb3c2023 /tools
parent6d62619addb260a809d0b65e1bdb36e4bbb95d52 (diff)
Update authentication to be django 2 compatible
Diffstat (limited to 'tools')
-rw-r--r--tools/communityauth/sample/django/auth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/communityauth/sample/django/auth.py b/tools/communityauth/sample/django/auth.py
index 4ae553b2..87ffb0b2 100644
--- a/tools/communityauth/sample/django/auth.py
+++ b/tools/communityauth/sample/django/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)