set priority in Feature model as blank, and remove uniqueness constrait
This commit is contained in:
parent
e4123d3ce9
commit
32ad122d9a
18
apps/main/migrations/0047_auto_20200115_1013.py
Normal file
18
apps/main/migrations/0047_auto_20200115_1013.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 2.2.7 on 2020-01-15 10:13
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('main', '0046_auto_20200114_1218'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='feature',
|
||||
name='priority',
|
||||
field=models.IntegerField(blank=True, default=None, null=True),
|
||||
),
|
||||
]
|
||||
|
|
@ -114,7 +114,7 @@ class Feature(ProjectBaseMixin, PlatformMixin):
|
|||
"""Feature model."""
|
||||
|
||||
slug = models.SlugField(max_length=255, unique=True)
|
||||
priority = models.IntegerField(unique=True, null=True, default=None)
|
||||
priority = models.IntegerField(blank=True, null=True, default=None)
|
||||
route = models.ForeignKey('PageType', on_delete=models.PROTECT, null=True, default=None)
|
||||
site_settings = models.ManyToManyField(SiteSettings, through='SiteFeature')
|
||||
old_id = models.IntegerField(null=True, blank=True)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user