add function to get exam index from list

This commit is contained in:
Ross
2020-12-14 14:20:50 +00:00
parent 95f901a349
commit 7ddea6df99
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
{% if unmarked %}
The following questions need marking
{% for question in unmarked %}
<a href="{% url 'anatomy:mark' exam.pk question.pk %}">{{question.pk}}</a>
<a href="{% url 'anatomy:mark' exam.pk question.pk %}">{{ exam|get_question_index:question }}</a>
{% endfor %}
{% endif %}