.
This commit is contained in:
@@ -9,9 +9,9 @@
|
|||||||
<div>
|
<div>
|
||||||
|
|
||||||
{% if not user_answers %}
|
{% if not user_answers %}
|
||||||
No answers to mark.
|
<div class="alert alert-info" role="alert">No answers to mark.</div>
|
||||||
|
|
||||||
{% else %}
|
{% endif %}
|
||||||
Answers:
|
Answers:
|
||||||
<ul>
|
<ul>
|
||||||
{% for answer in user_answers %}
|
{% for answer in user_answers %}
|
||||||
@@ -27,7 +27,6 @@
|
|||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
|
||||||
<div>
|
<div>
|
||||||
{% if question_details.current > 1 %}
|
{% if question_details.current > 1 %}
|
||||||
<a href="{% url 'longs:mark' exam.id question_details.current|add:'-2' %}"
|
<a href="{% url 'longs:mark' exam.id question_details.current|add:'-2' %}"
|
||||||
|
|||||||
@@ -130,6 +130,9 @@ class Question(models.Model):
|
|||||||
def get_correct_answer_stripped(self):
|
def get_correct_answer_stripped(self):
|
||||||
return self.get_correct_answer().replace("<p>","",1).replace("</p>","",1)
|
return self.get_correct_answer().replace("<p>","",1).replace("</p>","",1)
|
||||||
|
|
||||||
|
def get_stem_stripped(self):
|
||||||
|
return self.stem.replace("<p>","",1).replace("</p>","",1)
|
||||||
|
|
||||||
|
|
||||||
@reversion.register
|
@reversion.register
|
||||||
class Exam(ExamBase):
|
class Exam(ExamBase):
|
||||||
|
|||||||
Reference in New Issue
Block a user