aboutsummaryrefslogtreecommitdiffstats
path: root/servo/lib
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2021-05-12 20:58:01 +0300
committerFilipp Lepalaan <filipp@mac.com>2021-05-12 20:58:01 +0300
commit64babb6918fe038e8a94353117fb869e4db41f02 (patch)
tree17a5e1cb0213322191eee268b7e0344ac171324f /servo/lib
parent9326a6be300577965f7378bffbf6771240f52ad5 (diff)
downloadServo-64babb6918fe038e8a94353117fb869e4db41f02.tar.gz
Servo-64babb6918fe038e8a94353117fb869e4db41f02.tar.bz2
Servo-64babb6918fe038e8a94353117fb869e4db41f02.zip
Django 3 fixes
Diffstat (limited to 'servo/lib')
-rw-r--r--servo/lib/middleware.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/servo/lib/middleware.py b/servo/lib/middleware.py
index 89675e1..6549e6a 100644
--- a/servo/lib/middleware.py
+++ b/servo/lib/middleware.py
@@ -33,7 +33,7 @@ class LoginRequiredMiddleware:
'django.contrib.auth.middlware.AuthenticationMiddleware'. If that doesn't\
work, ensure your TEMPLATE_CONTEXT_PROCESSORS setting includes\
'django.core.context_processors.auth'."
- if request.user.is_authenticated() == False:
+ if request.user.is_authenticated == False:
path = request.path_info.lstrip('/')
if any(m.match(path) for m in EXEMPT_URLS) == False:
return HttpResponseRedirect(settings.LOGIN_URL)