diff options
author | Magnus Hagander | 2020-04-01 13:54:22 +0000 |
---|---|---|
committer | Magnus Hagander | 2020-04-04 12:17:35 +0000 |
commit | 53948baa9710eebc4990eb0fcf14626de050f784 (patch) | |
tree | 2d541d4e5705f80b6b16a08e981da40a1c1ce247 /postgresqleu/auth.py | |
parent | 56dd72be24b14503df539bc832d3ca48e811380a (diff) |
User.is_authenticated is no longer a callable in newer django
Diffstat (limited to 'postgresqleu/auth.py')
-rw-r--r-- | postgresqleu/auth.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/postgresqleu/auth.py b/postgresqleu/auth.py index 4ae553b2..87ffb0b2 100644 --- a/postgresqleu/auth.py +++ b/postgresqleu/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) |