From 7809a3c6394653dad74d30301309783149b89c89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Sun, 3 Oct 2021 17:34:25 +0200 Subject: [PATCH] =?UTF-8?q?Apply=20Tomate's=20suggestion:=20not=20x=20?= =?UTF-8?q?=E2=86=92=20x=20is=20not=20None?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- authens/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authens/views.py b/authens/views.py index 1ff593d..699cda5 100644 --- a/authens/views.py +++ b/authens/views.py @@ -145,7 +145,7 @@ class LogoutView(auth_views.LogoutView): # If the next_url is local (no hostname), make it absolute so that the user # is correctly redirected from CAS. - if next_page and not urlparse(next_page).netloc: + if next_page is not None and not urlparse(next_page).netloc: request = self.request next_page = urlunparse( (request.scheme, request.get_host(), next_page, "", "", "")