From a1163b5f2eb9bdc5a9aa45274251cc28dc461493 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 1 Jul 2012 10:27:06 +0000 Subject: [PATCH] unset page if its signout on signout --- pandora/user/views.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandora/user/views.py b/pandora/user/views.py index b83e61607..3f915671c 100644 --- a/pandora/user/views.py +++ b/pandora/user/views.py @@ -99,6 +99,10 @@ def signout(request): ''' response = json_response(text='ok') if request.user.is_authenticated(): + profile = request.user.get_profile() + if profile.ui.get('page') == 'signout': + profile.ui['page'] = '' + profile.save() response = json_response(text='logged out') logout(request)