From 7b79ea4b2ef24cbbfe70d1b22369e23e2fcb48ba Mon Sep 17 00:00:00 2001 From: Primal Pappachan Date: Fri, 13 Apr 2012 15:37:46 +0530 Subject: fixed logout no profile issue --- aloha/allotter/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aloha/allotter/views.py b/aloha/allotter/views.py index c3fc804..0b33a9f 100644 --- a/aloha/allotter/views.py +++ b/aloha/allotter/views.py @@ -140,10 +140,10 @@ def user_logout(request): try: quit_status = request.POST['check'] user = request.user + user_profile = user.get_profile() + user_application = user_profile.application except : return redirect('/allotter/login/') - user_profile = user.get_profile() - user_application = user_profile.application if str(quit_status) == "on": user_application.quit_status = True else: -- cgit