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