fix infinite redirect then connected to admin panel

This commit is contained in:
Valentin Samir 2015-12-11 13:29:04 +01:00
parent 8da42afd57
commit 48d5273afb

View file

@ -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):