Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
vabene1111 committed Nov 27, 2023
2 parents 75523c0 + 35743e8 commit d701790
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cookbook/migrations/0203_alter_unique_contstraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ class Migration(migrations.Migration):
operations = [
migrations.AddConstraint(
model_name='mealtype',
constraint=models.UniqueConstraint(fields=('space', 'name'), name='mt_unique_name_per_space'),
constraint=models.UniqueConstraint(fields=('space', 'name', 'created_by'), name='mt_unique_name_per_space'),
),
]
2 changes: 1 addition & 1 deletion cookbook/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ def __str__(self):

class Meta:
constraints = [
models.UniqueConstraint(fields=['space', 'name'], name='mt_unique_name_per_space'),
models.UniqueConstraint(fields=['space', 'name', 'created_by'], name='mt_unique_name_per_space'),
]


Expand Down

0 comments on commit d701790

Please sign in to comment.