This commit is contained in:
Ross
2021-08-11 19:52:44 +01:00
parent 50d3fdfaef
commit 4bd59c212d
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
<a href="{% url 'longs:exam_question_detail' exam.id question_details.current %}" title="View the Question">View</a>
<a href="{% url 'longs:long_update' question.id %}" title="Edit the Question">Edit</a> <a
href="{% url 'admin:longs_long_change' question.id %}" title="Edit the Question using the admin interface">Admin
Edit</a><a
Edit</a> <a
href="{% url 'admin:longs_ciduseranswer_change' answer.id %}" title="Edit the user answer using the admin interface">Admin
Edit (user answer)</a>
<h2>Marking question <a href="{% url 'longs:mark' exam.id question_details.current|add:'-1' %}"
+2
View File
@@ -61,6 +61,7 @@ from longs.models import LongCreationDefault
from generic.views import ExamViews
from reversion.views import RevisionMixin
import reversion
from rest_framework import viewsets
@@ -636,6 +637,7 @@ def loadJsonAnswer(answer):
@login_required
@user_is_long_checker
@reversion.create_revision()
def mark_answer(request, pk, sk, tk):
exam = get_object_or_404(Exam, pk=pk)