remove wrong unique constraint
This commit is contained in:
parent
93da9370bc
commit
2c3beb78d8
|
|
@ -27,7 +27,7 @@ class Migration(migrations.Migration):
|
|||
options={
|
||||
'verbose_name': 'establishment gallery',
|
||||
'verbose_name_plural': 'establishment galleries',
|
||||
'unique_together': {('establishment', 'is_main'), ('establishment', 'image')},
|
||||
'unique_together': {('establishment', 'image')},
|
||||
},
|
||||
),
|
||||
migrations.AddField(
|
||||
|
|
|
|||
|
|
@ -963,7 +963,7 @@ class EstablishmentGallery(IntermediateGalleryModelMixin):
|
|||
"""Meta class."""
|
||||
verbose_name = _('establishment gallery')
|
||||
verbose_name_plural = _('establishment galleries')
|
||||
unique_together = (('establishment', 'is_main'), ('establishment', 'image'))
|
||||
unique_together = ('establishment', 'image')
|
||||
|
||||
|
||||
class PositionQuerySet(models.QuerySet):
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user