.
This commit is contained in:
@@ -9,9 +9,9 @@
|
||||
<div>
|
||||
|
||||
{% if not user_answers %}
|
||||
No answers to mark.
|
||||
<div class="alert alert-info" role="alert">No answers to mark.</div>
|
||||
|
||||
{% else %}
|
||||
{% endif %}
|
||||
Answers:
|
||||
<ul>
|
||||
{% for answer in user_answers %}
|
||||
@@ -27,7 +27,6 @@
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
<div>
|
||||
{% if question_details.current > 1 %}
|
||||
<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):
|
||||
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
|
||||
class Exam(ExamBase):
|
||||
|
||||
Reference in New Issue
Block a user