This commit is contained in:
Ross
2021-12-14 17:45:27 +00:00
parent e92df93343
commit 6dd1657076
4 changed files with 107 additions and 3 deletions
@@ -0,0 +1,35 @@
# Generated by Django 3.2.8 on 2021-12-14 17:45
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('atlas', '0021_rename_pathalogicalprocess_pathologicalprocess'),
]
operations = [
migrations.AddField(
model_name='case',
name='editor',
field=models.ManyToManyField(blank=True, related_name='atlas_edited_cases', to=settings.AUTH_USER_MODEL),
),
migrations.AddField(
model_name='case',
name='report',
field=models.TextField(blank=True, help_text='A model (sample) report for the case.', null=True),
),
migrations.AlterField(
model_name='case',
name='author',
field=models.ManyToManyField(blank=True, help_text='Author of the case', related_name='atlas_authored_cases', to=settings.AUTH_USER_MODEL),
),
migrations.AlterField(
model_name='case',
name='history',
field=models.TextField(blank=True, help_text='A (brief) summary of the relevant history', null=True),
),
]
+14 -3
View File
@@ -218,8 +218,13 @@ class Case(models.Model):
help_text="Description of the case",
)
history = models.TextField(null=True, blank=True)
history = models.TextField(
null=True, blank=True, help_text="A (brief) summary of the relevant history"
)
discussion = models.TextField(null=True, blank=True)
report = models.TextField(
null=True, blank=True, help_text="A model (sample) report for the case."
)
# findings = models.TextField(null=True, blank=True)
@@ -242,8 +247,14 @@ class Case(models.Model):
author = models.ManyToManyField(
settings.AUTH_USER_MODEL,
blank=True,
help_text="Author of question",
related_name="atlas_authored_questions",
help_text="Author of the case",
related_name="atlas_authored_cases",
)
editor = models.ManyToManyField(
settings.AUTH_USER_MODEL,
blank=True,
related_name="atlas_edited_cases",
)
scrapped = models.BooleanField(