From e5a19130baf854eb1b34896493a91701fe43a2c8 Mon Sep 17 00:00:00 2001 From: Ross Date: Tue, 6 Jul 2021 20:02:35 +0100 Subject: [PATCH] . --- .../migrations/0040_alter_exam_exam_mode.py | 18 ++++++++++++++++++ anatomy/templates/anatomy/exam_overview.html | 4 +++- generic/models.py | 2 +- longs/migrations/0036_alter_exam_exam_mode.py | 18 ++++++++++++++++++ .../migrations/0008_alter_exam_exam_mode.py | 18 ++++++++++++++++++ rapids/migrations/0024_alter_exam_exam_mode.py | 18 ++++++++++++++++++ 6 files changed, 76 insertions(+), 2 deletions(-) create mode 100644 anatomy/migrations/0040_alter_exam_exam_mode.py create mode 100644 longs/migrations/0036_alter_exam_exam_mode.py create mode 100644 physics/migrations/0008_alter_exam_exam_mode.py create mode 100644 rapids/migrations/0024_alter_exam_exam_mode.py diff --git a/anatomy/migrations/0040_alter_exam_exam_mode.py b/anatomy/migrations/0040_alter_exam_exam_mode.py new file mode 100644 index 00000000..cdef9e6c --- /dev/null +++ b/anatomy/migrations/0040_alter_exam_exam_mode.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.4 on 2021-07-06 19:02 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('anatomy', '0039_answer_proposed'), + ] + + operations = [ + migrations.AlterField( + model_name='exam', + name='exam_mode', + field=models.BooleanField(default=False, help_text='If an exam should be taken in exam mode (users results will be submited to the server for marking)'), + ), + ] diff --git a/anatomy/templates/anatomy/exam_overview.html b/anatomy/templates/anatomy/exam_overview.html index 842b3993..e67d588f 100644 --- a/anatomy/templates/anatomy/exam_overview.html +++ b/anatomy/templates/anatomy/exam_overview.html @@ -26,12 +26,14 @@ {% for question in questions.all %}
  • + thumbail + {{ question.description }}
    {{ question.question_type }}: {{ question.GetPrimaryAnswer }}
    - Modality: {{ question.modality }}, View, Mark + Modality: {{ question.modality }}, View, Mark
  • {% endfor %} diff --git a/generic/models.py b/generic/models.py index d662be79..186ed75e 100644 --- a/generic/models.py +++ b/generic/models.py @@ -61,7 +61,7 @@ class ExamBase(models.Model): ) exam_mode = models.BooleanField( - help_text="If an exam should be taken in exam mode", default=True + help_text="If an exam should be taken in exam mode (users results will be submited to the server for marking)", default=False ) publish_results = models.BooleanField( diff --git a/longs/migrations/0036_alter_exam_exam_mode.py b/longs/migrations/0036_alter_exam_exam_mode.py new file mode 100644 index 00000000..a7c64a12 --- /dev/null +++ b/longs/migrations/0036_alter_exam_exam_mode.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.4 on 2021-07-06 19:02 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('longs', '0035_longseries_open_access'), + ] + + operations = [ + migrations.AlterField( + model_name='exam', + name='exam_mode', + field=models.BooleanField(default=False, help_text='If an exam should be taken in exam mode (users results will be submited to the server for marking)'), + ), + ] diff --git a/physics/migrations/0008_alter_exam_exam_mode.py b/physics/migrations/0008_alter_exam_exam_mode.py new file mode 100644 index 00000000..4ff89b0f --- /dev/null +++ b/physics/migrations/0008_alter_exam_exam_mode.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.4 on 2021-07-06 19:02 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('physics', '0007_exam_author'), + ] + + operations = [ + migrations.AlterField( + model_name='exam', + name='exam_mode', + field=models.BooleanField(default=False, help_text='If an exam should be taken in exam mode (users results will be submited to the server for marking)'), + ), + ] diff --git a/rapids/migrations/0024_alter_exam_exam_mode.py b/rapids/migrations/0024_alter_exam_exam_mode.py new file mode 100644 index 00000000..1b502e5b --- /dev/null +++ b/rapids/migrations/0024_alter_exam_exam_mode.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.4 on 2021-07-06 19:02 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('rapids', '0023_answer_proposed'), + ] + + operations = [ + migrations.AlterField( + model_name='exam', + name='exam_mode', + field=models.BooleanField(default=False, help_text='If an exam should be taken in exam mode (users results will be submited to the server for marking)'), + ), + ]