From 408b9641c4d2cbb5e0961658e1ea10d5a5c2f033 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 6 Apr 2021 02:44:23 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Correct=20null=3DTrue=20to=20bla?= =?UTF-8?q?nk=3DTrue=20in=20Project=20model?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/migrations/0003_auto_20210406_0044.py | 18 ++++++++++++++++++ sophon/core/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 sophon/core/migrations/0003_auto_20210406_0044.py diff --git a/sophon/core/migrations/0003_auto_20210406_0044.py b/sophon/core/migrations/0003_auto_20210406_0044.py new file mode 100644 index 0000000..ca4b218 --- /dev/null +++ b/sophon/core/migrations/0003_auto_20210406_0044.py @@ -0,0 +1,18 @@ +# Generated by Django 3.1.7 on 2021-04-06 00:44 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('core', '0002_auto_20210405_1641'), + ] + + operations = [ + migrations.AlterField( + model_name='project', + name='sources', + field=models.ManyToManyField(blank=True, help_text='The sources used by this project.', related_name='used_in', to='core.DataSource'), + ), + ] diff --git a/sophon/core/models.py b/sophon/core/models.py index 2f1ca18..93b9f75 100644 --- a/sophon/core/models.py +++ b/sophon/core/models.py @@ -56,7 +56,7 @@ class Project(models.Model): DataSource, help_text="The sources used by this project.", related_name="used_in", - null=True, + blank=True, ) def __str__(self):