Skip to content

Commit

Permalink
Fix #367 -- Add fallback if LOGOUT_REDIRECT_URL is None
Browse files Browse the repository at this point in the history
  • Loading branch information
codingjoe committed Dec 23, 2021
1 parent 31b521c commit 5f85b4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hijack/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class ReleaseUserView(
):
raise_exception = True

success_url = settings.LOGOUT_REDIRECT_URL
success_url = settings.LOGOUT_REDIRECT_URL or "/"

def test_func(self):
return bool(self.request.session.get("hijack_history", []))
Expand Down

0 comments on commit 5f85b4f

Please sign in to comment.