.
This commit is contained in:
+3
-3
@@ -697,7 +697,7 @@ def mark_answer(request, exam_id, question_number, cid):
|
||||
if "save" in request.POST:
|
||||
return redirect("longs:mark_answer", exam_id=exam_id, question_number=question_number, cid=cid)
|
||||
#elif "previous" in request.POST:
|
||||
# return redirect("longs:mark", pk=exam_id, sk=n - 1)
|
||||
# return redirect("longs:mark_question_overview", pk=exam_id, sk=n - 1)
|
||||
|
||||
else:
|
||||
form = MarkLongQuestionForm(initial={'score': answer.score})
|
||||
@@ -722,7 +722,7 @@ def mark_answer(request, exam_id, question_number, cid):
|
||||
# @user_passes_test(user_is_admin, login_url="/accounts/login")
|
||||
@login_required
|
||||
@user_is_long_marker
|
||||
def mark(request, pk, sk):
|
||||
def mark_question_overview(request, pk, sk):
|
||||
exam = get_object_or_404(Exam, pk=pk)
|
||||
|
||||
questions = exam.exam_questions.all()
|
||||
@@ -746,7 +746,7 @@ def mark(request, pk, sk):
|
||||
|
||||
return render(
|
||||
request,
|
||||
"longs/mark.html",
|
||||
"longs/mark_question_overview.html",
|
||||
{
|
||||
"exam": exam,
|
||||
"question": question,
|
||||
|
||||
Reference in New Issue
Block a user