From eca11e0be1dc4e37d670b307eb8ef2953fe23193 Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 8 Sep 2021 18:16:32 +0100 Subject: [PATCH] . --- longs/views.py | 5 ++--- static/css/anatomy.css | 4 ++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/longs/views.py b/longs/views.py index 6adf724f..412b4733 100755 --- a/longs/views.py +++ b/longs/views.py @@ -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 diff --git a/static/css/anatomy.css b/static/css/anatomy.css index 79d733b1..a653bf86 100644 --- a/static/css/anatomy.css +++ b/static/css/anatomy.css @@ -704,4 +704,8 @@ input { .id { opacity: 50%; font-size: small; +} + +.sticky-alert { + position: sticky; } \ No newline at end of file