From 67ac8617f28cf3c5443e7af9593d0d912928612c Mon Sep 17 00:00:00 2001 From: mahesh Date: Tue, 29 Aug 2017 13:44:30 +0530 Subject: Fixes 'AnonymousUser' object is not iterable bug. --- yaksh/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- cgit