This commit is contained in:
Ross
2021-07-29 18:14:20 +01:00
parent 0385ee2e32
commit 545b5c0c9b
3 changed files with 13 additions and 6 deletions
+5 -5
View File
@@ -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
+7
View File
@@ -6,6 +6,13 @@ CID: {{cid}}
<h2>Question [{{pos}}/{{exam_length}}]</h2>
<div><p>{{question.stem}}</p></div>
<ul>
<li>{{question.a_answer}}</li>
<li>{{question.b_answer}}</li>
<li>{{question.c_answer}}</li>
<li>{{question.d_answer}}</li>
<li>{{question.e_answer}}</li>
</ul>
{{form}}
<ul></ul>
+1 -1
View File
@@ -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,