From a62d73e2bdeb9f281adc56d3aeee7cde58290807 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 16 Aug 2021 12:07:03 +0000 Subject: [PATCH] . --- anatomy/migrations/0044_auto_20210816_1306.py | 23 +++++++++++++++++++ generic/models.py | 4 +++- longs/migrations/0044_auto_20210816_1306.py | 23 +++++++++++++++++++ physics/migrations/0012_auto_20210816_1306.py | 23 +++++++++++++++++++ rapids/forms.py | 2 +- rapids/migrations/0028_auto_20210816_1306.py | 23 +++++++++++++++++++ sbas/migrations/0004_auto_20210816_1306.py | 23 +++++++++++++++++++ 7 files changed, 119 insertions(+), 2 deletions(-) create mode 100644 anatomy/migrations/0044_auto_20210816_1306.py create mode 100644 longs/migrations/0044_auto_20210816_1306.py create mode 100644 physics/migrations/0012_auto_20210816_1306.py create mode 100644 rapids/migrations/0028_auto_20210816_1306.py create mode 100644 sbas/migrations/0004_auto_20210816_1306.py diff --git a/anatomy/migrations/0044_auto_20210816_1306.py b/anatomy/migrations/0044_auto_20210816_1306.py new file mode 100644 index 00000000..8d51aebd --- /dev/null +++ b/anatomy/migrations/0044_auto_20210816_1306.py @@ -0,0 +1,23 @@ +# Generated by Django 3.2.6 on 2021-08-16 12:06 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('anatomy', '0043_rename_json_creation_id_exam_exam_json_id'), + ] + + operations = [ + migrations.AddField( + model_name='exam', + name='archive', + field=models.BooleanField(default=False, help_text='Archived exams will remain on the test system but will not be displayed by default'), + ), + migrations.AlterField( + model_name='exam', + name='active', + field=models.BooleanField(default=False, help_text='If an exam should be available to take'), + ), + ] diff --git a/generic/models.py b/generic/models.py index 251bb702..7d97a82f 100644 --- a/generic/models.py +++ b/generic/models.py @@ -57,7 +57,7 @@ class ExamBase(models.Model): #exam_questions = SortedManyToManyField(Long, related_name="exams", blank="true") active = models.BooleanField( - help_text="If an exam should be available", default=False + help_text="If an exam should be available to take", default=False ) exam_mode = models.BooleanField( @@ -75,6 +75,8 @@ class ExamBase(models.Model): json_creation_time = models.DateTimeField(blank=True, default=None, null=True) exam_json_id = models.IntegerField(default=1, help_text="auto incrementing field when json recreated") + archive = models.BooleanField(help_text="Archived exams will remain on the test system but will not be displayed by default", default=False) + #time_limit = models.IntegerField( # help_text="Exam time limit (in seconds). Default is 2100 secondse (35 minutes)", # default=2100, diff --git a/longs/migrations/0044_auto_20210816_1306.py b/longs/migrations/0044_auto_20210816_1306.py new file mode 100644 index 00000000..7fa4554b --- /dev/null +++ b/longs/migrations/0044_auto_20210816_1306.py @@ -0,0 +1,23 @@ +# Generated by Django 3.2.6 on 2021-08-16 12:06 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('longs', '0043_rename_sorted_series_long_series'), + ] + + operations = [ + migrations.AddField( + model_name='exam', + name='archive', + field=models.BooleanField(default=False, help_text='Archived exams will remain on the test system but will not be displayed by default'), + ), + migrations.AlterField( + model_name='exam', + name='active', + field=models.BooleanField(default=False, help_text='If an exam should be available to take'), + ), + ] diff --git a/physics/migrations/0012_auto_20210816_1306.py b/physics/migrations/0012_auto_20210816_1306.py new file mode 100644 index 00000000..30394357 --- /dev/null +++ b/physics/migrations/0012_auto_20210816_1306.py @@ -0,0 +1,23 @@ +# Generated by Django 3.2.6 on 2021-08-16 12:06 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('physics', '0011_rename_json_creation_id_exam_exam_json_id'), + ] + + operations = [ + migrations.AddField( + model_name='exam', + name='archive', + field=models.BooleanField(default=False, help_text='Archived exams will remain on the test system but will not be displayed by default'), + ), + migrations.AlterField( + model_name='exam', + name='active', + field=models.BooleanField(default=False, help_text='If an exam should be available to take'), + ), + ] diff --git a/rapids/forms.py b/rapids/forms.py index f552240c..f7993321 100755 --- a/rapids/forms.py +++ b/rapids/forms.py @@ -221,4 +221,4 @@ AnswerUpdateFormSet = inlineformset_factory( class ExamForm(ModelForm): class Meta: model = Exam - fields = ["name", "time_limit", "exam_mode", "active"] \ No newline at end of file + fields = ["name", "time_limit", "exam_mode", "active", "archive"] \ No newline at end of file diff --git a/rapids/migrations/0028_auto_20210816_1306.py b/rapids/migrations/0028_auto_20210816_1306.py new file mode 100644 index 00000000..8b9d6db6 --- /dev/null +++ b/rapids/migrations/0028_auto_20210816_1306.py @@ -0,0 +1,23 @@ +# Generated by Django 3.2.6 on 2021-08-16 12:06 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('rapids', '0027_rename_json_creation_id_exam_exam_json_id'), + ] + + operations = [ + migrations.AddField( + model_name='exam', + name='archive', + field=models.BooleanField(default=False, help_text='Archived exams will remain on the test system but will not be displayed by default'), + ), + migrations.AlterField( + model_name='exam', + name='active', + field=models.BooleanField(default=False, help_text='If an exam should be available to take'), + ), + ] diff --git a/sbas/migrations/0004_auto_20210816_1306.py b/sbas/migrations/0004_auto_20210816_1306.py new file mode 100644 index 00000000..e01cbc3c --- /dev/null +++ b/sbas/migrations/0004_auto_20210816_1306.py @@ -0,0 +1,23 @@ +# Generated by Django 3.2.6 on 2021-08-16 12:06 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('sbas', '0003_rename_json_creation_id_exam_exam_json_id'), + ] + + operations = [ + migrations.AddField( + model_name='exam', + name='archive', + field=models.BooleanField(default=False, help_text='Archived exams will remain on the test system but will not be displayed by default'), + ), + migrations.AlterField( + model_name='exam', + name='active', + field=models.BooleanField(default=False, help_text='If an exam should be available to take'), + ), + ]