.
This commit is contained in:
+5
-5
@@ -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
|
||||
|
||||
@@ -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
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user