Fix URL for viewing question details by adjusting index in mark_answer.html

This commit is contained in:
Ross
2025-09-02 21:38:21 +01:00
parent 8a92460cb2
commit 149b95a7e4
+1 -1
View File
@@ -2,7 +2,7 @@
{% load crispy_forms_tags %}
{% block content %}
<a href="{% url 'shorts:exam_question_detail' exam.id question_details.current %}" title="View the Question">View</a>
<a href="{% url 'shorts:exam_question_detail' exam.id question_details.current|add:'-1' %}" title="View the Question">View</a>
<a href="{% url 'shorts:question_update' question.id %}" title="Edit the Question">Edit</a>
{% if request.user.is_superuser %}
<a href="{% url 'admin:shorts_question_change' question.id %}" title="Edit the Question using the admin interface">Admin