summaryrefslogtreecommitdiff
path: root/yaksh/views.py
diff options
context:
space:
mode:
authormaheshgudi2016-05-16 12:43:39 +0530
committermaheshgudi2016-05-27 12:43:12 +0530
commit4f94c550a16654c6723a8c09cff6557a135f4747 (patch)
tree68c228cbdfd551f4b1c775d8d990054df3080af3 /yaksh/views.py
parent175153cc5daeccd80bfa0184114ebf01bae93013 (diff)
downloadonline_test-4f94c550a16654c6723a8c09cff6557a135f4747.tar.gz
online_test-4f94c550a16654c6723a8c09cff6557a135f4747.tar.bz2
online_test-4f94c550a16654c6723a8c09cff6557a135f4747.zip
home button will redirect moderators to exam/manage instead of exam/quizzes
Diffstat (limited to 'yaksh/views.py')
-rw-r--r--yaksh/views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/yaksh/views.py b/yaksh/views.py
index 53c9372..989abf7 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -367,6 +367,8 @@ def start(request, questionpaper_id=None, attempt_num=None):
attempt_number = 1 if not last_attempt else last_attempt.attempt_number +1
context = {'user': user, 'questionpaper': quest_paper,
'attempt_num': attempt_number}
+ if is_moderator(user):
+ context["user"] = "moderator"
return my_render_to_response('yaksh/intro.html', context,
context_instance=ci)
else: