From 38fc924222db664763b75fb4d09dcc8aa974ca24 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 14 Oct 2024 12:21:33 +0100 Subject: [PATCH] . --- generic/forms.py | 2 +- generic/templates/generic/exam_footer.html | 12 ++++++------ manage.py | 1 - rapids/templates/rapids/exam_overview.html | 6 ++++-- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/generic/forms.py b/generic/forms.py index 0eff30dd..9722af40 100755 --- a/generic/forms.py +++ b/generic/forms.py @@ -261,7 +261,7 @@ class ExamGroupsFormMixin(ModelForm): cid_user_group_queryset = CidUserGroup.objects.filter( archive=False, open_access=True ) - user_user_group_queryset = UserUserGroup.objects.none( + user_user_group_queryset = UserUserGroup.objects.filter( archive=False, open_access=True ) # cid_user_group_queryset = CidUserGroup.objects.none() diff --git a/generic/templates/generic/exam_footer.html b/generic/templates/generic/exam_footer.html index 95c2fa9e..88d04c38 100644 --- a/generic/templates/generic/exam_footer.html +++ b/generic/templates/generic/exam_footer.html @@ -1,18 +1,18 @@ {% if can_edit %}

- +

Additional details
JSON creation time: {{exam.json_creation_time}} ({{exam.json_creation_time|date:"c"}}), JSON creation id: {{exam.exam_json_id}}
- JSON - JSON (unbased) - Refresh JSON cache + JSON + JSON (unbased) + Refresh JSON cache {% if request.user.is_superuser %} - - + + {% endif %}
{% endif %} \ No newline at end of file diff --git a/manage.py b/manage.py index 22114320..2dea2ff2 100755 --- a/manage.py +++ b/manage.py @@ -30,4 +30,3 @@ if __name__ == "__main__": ) raise execute_from_command_line(sys.argv) - diff --git a/rapids/templates/rapids/exam_overview.html b/rapids/templates/rapids/exam_overview.html index 20f098eb..f200eab1 100644 --- a/rapids/templates/rapids/exam_overview.html +++ b/rapids/templates/rapids/exam_overview.html @@ -33,8 +33,10 @@ Normal {% endif %}
- Examination: {{ question.get_examinations }}, Mark + Examination: {{ question.get_examinations }}, + {% if exam.exam_mode %} + Mark + {% endif %} [id: {{question.pk}}]