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
1 changed files with 2 additions and 1 deletions

View File

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