fix infinite redirect then connected to admin panel
This commit is contained in:
parent
8da42afd57
commit
48d5273afb
1 changed files with 2 additions and 1 deletions
|
@ -82,7 +82,8 @@ class LogoutMixin(object):
|
||||||
user.logout(self.request)
|
user.logout(self.request)
|
||||||
user.delete()
|
user.delete()
|
||||||
except models.User.DoesNotExist:
|
except models.User.DoesNotExist:
|
||||||
pass
|
self.clean_session_variables()
|
||||||
|
self.request.session.flush()
|
||||||
|
|
||||||
|
|
||||||
class LogoutView(View, LogoutMixin):
|
class LogoutView(View, LogoutMixin):
|
||||||
|
|
Loading…
Reference in a new issue