diff options
Diffstat (limited to 'yaksh/views.py')
-rw-r--r-- | yaksh/views.py | 2 |
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: |