Clean up unique on existing models

This commit is contained in:
Matthew Ryan Dillon 2016-06-16 06:45:59 -07:00
parent a44ac2fa81
commit 49eacdeef4
16 changed files with 141 additions and 12 deletions

View file

@ -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')]),