From 0043180e66b278f83a325c1e52397325b58a863c Mon Sep 17 00:00:00 2001 From: Ross Date: Thu, 19 Aug 2021 11:56:10 +0100 Subject: [PATCH] . --- rapids/templates/rapids/exam_scores_user.html | 2 ++ rapids/views.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/rapids/templates/rapids/exam_scores_user.html b/rapids/templates/rapids/exam_scores_user.html index 1459951a..3073be94 100644 --- a/rapids/templates/rapids/exam_scores_user.html +++ b/rapids/templates/rapids/exam_scores_user.html @@ -1,6 +1,8 @@ {% extends 'rapids/base.html' %} {% block content %} +
+

Exam: {{ exam.name }}

Candidate: {{ cid }}

diff --git a/rapids/views.py b/rapids/views.py index 117a9b1b..7f35783d 100755 --- a/rapids/views.py +++ b/rapids/views.py @@ -1139,7 +1139,7 @@ def question_review(request, pk, sk): exam = get_object_or_404(Exam, pk=pk) if not exam.publish_results: - return Http404 + raise Http404 question = exam.exam_questions.all()[sk]