Apply Tomate's suggestion: not x → x is not None
This commit is contained in:
parent
acea5a6f4e
commit
7809a3c639
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ class LogoutView(auth_views.LogoutView):
|
||||||
|
|
||||||
# If the next_url is local (no hostname), make it absolute so that the user
|
# If the next_url is local (no hostname), make it absolute so that the user
|
||||||
# is correctly redirected from CAS.
|
# 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
|
request = self.request
|
||||||
next_page = urlunparse(
|
next_page = urlunparse(
|
||||||
(request.scheme, request.get_host(), next_page, "", "", "")
|
(request.scheme, request.get_host(), next_page, "", "", "")
|
||||||
|
|
Loading…
Reference in a new issue