diff options
author | Filipp Lepalaan <filipp@mac.com> | 2021-05-12 20:58:01 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2021-05-12 20:58:01 +0300 |
commit | 64babb6918fe038e8a94353117fb869e4db41f02 (patch) | |
tree | 17a5e1cb0213322191eee268b7e0344ac171324f /servo/views | |
parent | 9326a6be300577965f7378bffbf6771240f52ad5 (diff) | |
download | Servo-64babb6918fe038e8a94353117fb869e4db41f02.tar.gz Servo-64babb6918fe038e8a94353117fb869e4db41f02.tar.bz2 Servo-64babb6918fe038e8a94353117fb869e4db41f02.zip |
Django 3 fixes
Diffstat (limited to 'servo/views')
-rw-r--r-- | servo/views/checkin.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/servo/views/checkin.py b/servo/views/checkin.py index 1a8256a..0c83201 100644 --- a/servo/views/checkin.py +++ b/servo/views/checkin.py @@ -44,7 +44,7 @@ def find_device(request): def find_customer(request, phone): - if not request.user.is_authenticated(): + if not request.user.is_authenticated: raise PermissionDenied results = [] @@ -116,7 +116,7 @@ def init_session(request): Only run for GET requests """ - if not request.user.is_authenticated(): + if not request.user.is_authenticated: request.session.flush() if not Configuration.checkin_enabled(): |