This commit is contained in:
Ross
2022-04-01 22:35:52 +01:00
parent d8b5f36686
commit 54e2d3af5d
2 changed files with 28 additions and 1 deletions
@@ -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'),
),
]
+5 -1
View File
@@ -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"
)