From 3d9a6bc68e5fbf9093a7ea926c7431e93775d8d3 Mon Sep 17 00:00:00 2001 From: Prabhu Ramachandran Date: Thu, 17 Nov 2011 21:52:21 +0530 Subject: ENH/BUG: Showing number of marks and fixing bug. The check view was not showing the quiz description. --- exam/views.py | 1 + templates/exam/question.html | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/exam/views.py b/exam/views.py index 2437fba..f30398a 100644 --- a/exam/views.py +++ b/exam/views.py @@ -184,6 +184,7 @@ def check(request, q_id): context = {'question': question, 'error_message': err_msg, 'paper': paper, 'last_attempt': answer, + 'quiz_name': paper.quiz.description, 'time_left': time_left} return render_to_response('exam/question.html', context, diff --git a/templates/exam/question.html b/templates/exam/question.html index 9ea27c4..fe27e8f 100644 --- a/templates/exam/question.html +++ b/templates/exam/question.html @@ -48,9 +48,11 @@ function update_time() {% block onload %} onload="update_time()" {% endblock %} {% block content %} -
{{ question.description }}
+{{ question.description }}
+
+(Marks: {{ question.points }})
ERROR:
{{ error_message }}{% endif %} -- cgit