Clean up unique on existing models
This commit is contained in:
parent
a44ac2fa81
commit
49eacdeef4
16 changed files with 141 additions and 12 deletions
|
@ -81,6 +81,19 @@ class Migration(migrations.Migration):
|
|||
'ordering': ['sort_order'],
|
||||
},
|
||||
),
|
||||
migrations.AlterUniqueTogether(
|
||||
name='site',
|
||||
unique_together=set([('region', 'name', 'code')]),
|
||||
),
|
||||
migrations.AlterUniqueTogether(
|
||||
name='municipallocation',
|
||||
unique_together=set([('name', 'code')]),
|
||||
),
|
||||
migrations.AlterUniqueTogether(
|
||||
name='storagelocation',
|
||||
unique_together=set([('code', 'facility', 'building', 'room',
|
||||
'freezer', 'temp_c')]),
|
||||
),
|
||||
migrations.AlterUniqueTogether(
|
||||
name='region',
|
||||
unique_together=set([('name', 'code')]),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue