From cfec96a9c747e8430c6a594e787df444d7fab90b Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Fri, 16 Feb 2018 12:27:18 +0530 Subject: [PATCH] locale: Don't remove language preference on logout When a logged-in user is logs out, keep the language preference of the user who was just logged in. This is Django behavior, don't overwrite it. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/sso/views.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/plinth/modules/sso/views.py b/plinth/modules/sso/views.py index 3f0de87a8..749cbce19 100644 --- a/plinth/modules/sso/views.py +++ b/plinth/modules/sso/views.py @@ -111,11 +111,6 @@ class SSOLogoutView(LogoutView): def dispatch(self, request, *args, **kwargs): response = super(SSOLogoutView, self).dispatch(request, *args, **kwargs) - try: - del request.session[translation.LANGUAGE_SESSION_KEY] - except KeyError: - pass - response.delete_cookie(SSO_COOKIE_NAME) return response