.
This commit is contained in:
+5
-5
@@ -30,11 +30,11 @@ class Question(models.Model):
|
|||||||
answer_help_text = "Answer text"
|
answer_help_text = "Answer text"
|
||||||
|
|
||||||
BEST_ANSWER_CHOICES = (
|
BEST_ANSWER_CHOICES = (
|
||||||
('a', 'answer_a'),
|
('a', 'a_answer'),
|
||||||
('b', 'answer_b'),
|
('b', 'b_answer'),
|
||||||
('c', 'answer_c'),
|
('c', 'c_answer'),
|
||||||
('d', 'answer_d'),
|
('d', 'd_answer'),
|
||||||
('e', 'answer_e'),
|
('e', 'e_answer'),
|
||||||
)
|
)
|
||||||
|
|
||||||
# I doubt this is the best way to structure the model
|
# I doubt this is the best way to structure the model
|
||||||
|
|||||||
@@ -6,6 +6,13 @@ CID: {{cid}}
|
|||||||
<h2>Question [{{pos}}/{{exam_length}}]</h2>
|
<h2>Question [{{pos}}/{{exam_length}}]</h2>
|
||||||
|
|
||||||
<div><p>{{question.stem}}</p></div>
|
<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}}
|
{{form}}
|
||||||
<ul></ul>
|
<ul></ul>
|
||||||
|
|||||||
+1
-1
@@ -274,7 +274,7 @@ def exam_take(request, pk, sk, cid):
|
|||||||
"form": form,
|
"form": form,
|
||||||
"cid": cid,
|
"cid": cid,
|
||||||
"exam": exam,
|
"exam": exam,
|
||||||
"questions": question,
|
"question": question,
|
||||||
"next": next,
|
"next": next,
|
||||||
"previous": previous,
|
"previous": previous,
|
||||||
"exam_length": exam_length,
|
"exam_length": exam_length,
|
||||||
|
|||||||
Reference in New Issue
Block a user