unset page if its signout on signout

This commit is contained in:
j 2012-07-01 10:27:06 +00:00
parent 82a327b115
commit a1163b5f2e

View file

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