From ad4c8ea9a1d038d07f4aa9d10b4895d3fb185e0a Mon Sep 17 00:00:00 2001 From: Ross Date: Tue, 23 Nov 2021 22:40:39 +0000 Subject: [PATCH] . --- atlas/migrations/0002_auto_20211123_2240.py | 24 +++++++++++++++++++++ atlas/models.py | 1 + 2 files changed, 25 insertions(+) create mode 100644 atlas/migrations/0002_auto_20211123_2240.py diff --git a/atlas/migrations/0002_auto_20211123_2240.py b/atlas/migrations/0002_auto_20211123_2240.py new file mode 100644 index 00000000..100c5361 --- /dev/null +++ b/atlas/migrations/0002_auto_20211123_2240.py @@ -0,0 +1,24 @@ +# Generated by Django 3.2.8 on 2021-11-23 22:40 + +from django.db import migrations, models +import sortedm2m.fields + + +class Migration(migrations.Migration): + + dependencies = [ + ('atlas', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='case', + name='title', + field=models.CharField(default='', help_text='Title of the case', max_length=255), + ), + migrations.AlterField( + model_name='case', + name='series', + field=sortedm2m.fields.SortedManyToManyField(help_text=None, related_name='case', to='atlas.Series'), + ), + ] diff --git a/atlas/models.py b/atlas/models.py index 8e2cf910..a478ea17 100644 --- a/atlas/models.py +++ b/atlas/models.py @@ -81,6 +81,7 @@ class Case(models.Model): VASC = 'VA', _('Vascular') HAEMONC = 'HA', _('Haemotology and Oncology') + title = models.CharField(max_length=255, help_text="Title of the case", default="") # author = models.ForeignKey('auth.User', on_delete=models.CASCADE) # image = models.ImageField() description = models.TextField(