summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrimal Pappachan2012-04-13 15:37:46 +0530
committerPrimal Pappachan2012-04-13 15:37:46 +0530
commit7b79ea4b2ef24cbbfe70d1b22369e23e2fcb48ba (patch)
tree39f211462eeb3414167c6d29656719d13f5a0557
parentb0a67f1f3fe056ed049ad1e703237ec093c7cc14 (diff)
downloadaloha-7b79ea4b2ef24cbbfe70d1b22369e23e2fcb48ba.tar.gz
aloha-7b79ea4b2ef24cbbfe70d1b22369e23e2fcb48ba.tar.bz2
aloha-7b79ea4b2ef24cbbfe70d1b22369e23e2fcb48ba.zip
fixed logout no profile issue
-rw-r--r--aloha/allotter/views.py4
1 files 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: