Clean up unique on existing models
This commit is contained in:
parent
a44ac2fa81
commit
49eacdeef4
16 changed files with 141 additions and 12 deletions
|
@ -80,6 +80,10 @@ class Migration(migrations.Migration):
|
|||
name='measurementunit',
|
||||
unique_together=set([('name', 'code')]),
|
||||
),
|
||||
migrations.AlterUniqueTogether(
|
||||
name='measurementtype',
|
||||
unique_together=set([('name', 'code', 'measurement_type_class')]),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='measurementtype',
|
||||
name='default_measurement_unit',
|
||||
|
@ -123,4 +127,8 @@ class Migration(migrations.Migration):
|
|||
name='default_measurement_unit',
|
||||
field=models.ForeignKey(blank=True, to='misc.MeasurementUnit', related_name='measurement_types', null=True),
|
||||
),
|
||||
migrations.AlterUniqueTogether(
|
||||
name='container',
|
||||
unique_together=set([('name', 'code', 'color', 'material', 'volume')]),
|
||||
),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue