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" )