mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-22 14:54:22 +00:00
🔧 Correct null=True to blank=True in Project model
This commit is contained in:
parent
813a7635e4
commit
7109224f2f
2 changed files with 19 additions and 1 deletions
18
sophon/core/migrations/0003_auto_20210406_0044.py
Normal file
18
sophon/core/migrations/0003_auto_20210406_0044.py
Normal file
|
@ -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'),
|
||||||
|
),
|
||||||
|
]
|
|
@ -56,7 +56,7 @@ class Project(models.Model):
|
||||||
DataSource,
|
DataSource,
|
||||||
help_text="The sources used by this project.",
|
help_text="The sources used by this project.",
|
||||||
related_name="used_in",
|
related_name="used_in",
|
||||||
null=True,
|
blank=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
|
Loading…
Reference in a new issue