summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
authormahesh2017-08-29 13:44:30 +0530
committermahesh2017-08-29 13:44:30 +0530
commit67ac8617f28cf3c5443e7af9593d0d912928612c (patch)
treee1092c780e7068e40825210e121ea3f5f18ee044 /yaksh
parent9e0f737c25a5156aa884d27357af0aef1145c4b7 (diff)
downloadonline_test-67ac8617f28cf3c5443e7af9593d0d912928612c.tar.gz
online_test-67ac8617f28cf3c5443e7af9593d0d912928612c.tar.bz2
online_test-67ac8617f28cf3c5443e7af9593d0d912928612c.zip
Fixes 'AnonymousUser' object is not iterable bug.
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/yaksh/views.py b/yaksh/views.py
index 3c7df4d..3c33e50 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -579,7 +579,8 @@ def check(request, q_id, attempt_num=None, questionpaper_id=None):
return show_question(request, current_question, paper)
-
+@login_required
+@email_verified
def quit(request, reason=None, attempt_num=None, questionpaper_id=None):
"""Show the quit page when the user logs out."""
paper = AnswerPaper.objects.get(user=request.user,