Commit 48d5273a authored by Valentin Samir's avatar Valentin Samir

fix infinite redirect then connected to admin panel

parent 8da42afd
......@@ -82,7 +82,8 @@ class LogoutMixin(object):
user.logout(self.request)
user.delete()
except models.User.DoesNotExist:
pass
self.clean_session_variables()
self.request.session.flush()
class LogoutView(View, LogoutMixin):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment