fix infinite redirect then connected to admin panel
This commit is contained in:
parent
8da42afd57
commit
48d5273afb
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue