From 54e2d3af5d8523c3a3b5bc5029cc5e6a3de14b71 Mon Sep 17 00:00:00 2001 From: Ross Date: Fri, 1 Apr 2022 22:35:52 +0100 Subject: [PATCH] . --- atlas/migrations/0034_auto_20220401_2235.py | 23 +++++++++++++++++++++ atlas/models.py | 6 +++++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 atlas/migrations/0034_auto_20220401_2235.py diff --git a/atlas/migrations/0034_auto_20220401_2235.py b/atlas/migrations/0034_auto_20220401_2235.py new file mode 100644 index 00000000..a9ec2de0 --- /dev/null +++ b/atlas/migrations/0034_auto_20220401_2235.py @@ -0,0 +1,23 @@ +# Generated by Django 3.2.10 on 2022-04-01 21:35 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('atlas', '0033_casecollection_archive'), + ] + + operations = [ + migrations.RenameField( + model_name='casecollection', + old_name='published', + new_name='publish_results', + ), + migrations.AddField( + model_name='casecollection', + name='active', + field=models.BooleanField(default=True, help_text='If a collection should be available'), + ), + ] diff --git a/atlas/models.py b/atlas/models.py index e5c0676a..2a818164 100644 --- a/atlas/models.py +++ b/atlas/models.py @@ -574,10 +574,14 @@ class CaseCollection(models.Model): cases = models.ManyToManyField(Case, through="CaseDetail") - published = models.BooleanField( + publish_results = models.BooleanField( help_text="If a collection should published", default=True ) + active = models.BooleanField( + help_text="If a collection should be available", default=True + ) + show_title = models.BooleanField( default=False, help_text="Show the title of the cases" )