.
This commit is contained in:
+2
-3
@@ -668,14 +668,13 @@ def mark_answer(request, pk, sk, cid):
|
|||||||
except IndexError:
|
except IndexError:
|
||||||
raise Http404("Exam question does not exist")
|
raise Http404("Exam question does not exist")
|
||||||
|
|
||||||
|
|
||||||
cid_list = list(question.cid_user_answers.filter(exam__id=pk).values_list("cid", flat=True))
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
answer = question.cid_user_answers.get(cid=cid, exam__id=pk)
|
answer = question.cid_user_answers.get(cid=cid, exam__id=pk)
|
||||||
except ObjectDoesNotExist:
|
except ObjectDoesNotExist:
|
||||||
raise Http404("User answer does not exist")
|
raise Http404("User answer does not exist")
|
||||||
|
|
||||||
|
cid_list = list(question.cid_user_answers.filter(exam__id=pk).values_list("cid", flat=True))
|
||||||
|
|
||||||
previous_cid = False
|
previous_cid = False
|
||||||
next_cid = False
|
next_cid = False
|
||||||
|
|
||||||
|
|||||||
@@ -705,3 +705,7 @@ input {
|
|||||||
opacity: 50%;
|
opacity: 50%;
|
||||||
font-size: small;
|
font-size: small;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sticky-alert {
|
||||||
|
position: sticky;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user