From 545b5c0c9ba5e4e6ae1e67e6bb7c7bac1a6362a0 Mon Sep 17 00:00:00 2001 From: Ross Date: Thu, 29 Jul 2021 18:14:20 +0100 Subject: [PATCH] . --- sbas/models.py | 10 +++++----- sbas/templates/sbas/exam_take.html | 7 +++++++ sbas/views.py | 2 +- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/sbas/models.py b/sbas/models.py index 2f2d2969..3d080218 100644 --- a/sbas/models.py +++ b/sbas/models.py @@ -30,11 +30,11 @@ class Question(models.Model): answer_help_text = "Answer text" BEST_ANSWER_CHOICES = ( - ('a', 'answer_a'), - ('b', 'answer_b'), - ('c', 'answer_c'), - ('d', 'answer_d'), - ('e', 'answer_e'), + ('a', 'a_answer'), + ('b', 'b_answer'), + ('c', 'c_answer'), + ('d', 'd_answer'), + ('e', 'e_answer'), ) # I doubt this is the best way to structure the model diff --git a/sbas/templates/sbas/exam_take.html b/sbas/templates/sbas/exam_take.html index cd390131..2ff29927 100755 --- a/sbas/templates/sbas/exam_take.html +++ b/sbas/templates/sbas/exam_take.html @@ -6,6 +6,13 @@ CID: {{cid}}

Question [{{pos}}/{{exam_length}}]

{{question.stem}}

+ {{form}} diff --git a/sbas/views.py b/sbas/views.py index fc8814ba..694d22d2 100644 --- a/sbas/views.py +++ b/sbas/views.py @@ -274,7 +274,7 @@ def exam_take(request, pk, sk, cid): "form": form, "cid": cid, "exam": exam, - "questions": question, + "question": question, "next": next, "previous": previous, "exam_length": exam_length,