diff options
-rw-r--r-- | aloha/allotter/views.py | 4 |
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: |