.
This commit is contained in:
@@ -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: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
|
<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
|
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
|
href="{% url 'admin:longs_ciduseranswer_change' answer.id %}" title="Edit the user answer using the admin interface">Admin
|
||||||
Edit (user answer)</a>
|
Edit (user answer)</a>
|
||||||
<h2>Marking question <a href="{% url 'longs:mark' exam.id question_details.current|add:'-1' %}"
|
<h2>Marking question <a href="{% url 'longs:mark' exam.id question_details.current|add:'-1' %}"
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ from longs.models import LongCreationDefault
|
|||||||
|
|
||||||
from generic.views import ExamViews
|
from generic.views import ExamViews
|
||||||
from reversion.views import RevisionMixin
|
from reversion.views import RevisionMixin
|
||||||
|
import reversion
|
||||||
|
|
||||||
|
|
||||||
from rest_framework import viewsets
|
from rest_framework import viewsets
|
||||||
@@ -636,6 +637,7 @@ def loadJsonAnswer(answer):
|
|||||||
|
|
||||||
@login_required
|
@login_required
|
||||||
@user_is_long_checker
|
@user_is_long_checker
|
||||||
|
@reversion.create_revision()
|
||||||
def mark_answer(request, pk, sk, tk):
|
def mark_answer(request, pk, sk, tk):
|
||||||
exam = get_object_or_404(Exam, pk=pk)
|
exam = get_object_or_404(Exam, pk=pk)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user