Clean up unique on existing models
This commit is contained in:
parent
a44ac2fa81
commit
49eacdeef4
16 changed files with 141 additions and 12 deletions
|
@ -13,7 +13,7 @@ class Migration(migrations.Migration):
|
|||
name='ADFGPermit',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', serialize=False, primary_key=True, auto_created=True)),
|
||||
('name', models.CharField(max_length=200)),
|
||||
('name', models.CharField(max_length=200, unique=True)),
|
||||
('sort_order', models.IntegerField(blank=True, null=True)),
|
||||
],
|
||||
options={
|
||||
|
@ -82,7 +82,7 @@ class Migration(migrations.Migration):
|
|||
name='Flaw',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', serialize=False, primary_key=True, auto_created=True)),
|
||||
('name', models.CharField(max_length=200)),
|
||||
('name', models.CharField(max_length=200, unique=True)),
|
||||
('description', models.CharField(blank=True, max_length=255)),
|
||||
('sort_order', models.IntegerField(blank=True, null=True)),
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue