Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergi0bbb committed Sep 3, 2024
1 parent 6e4f63d commit 8d8594b
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions db/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,10 @@ def save(self, *args, **kwargs) -> None:
self.full_clean()
super().save(*args, **kwargs)


class Meta:
constraints = [
models.UniqueConstraint(
fields=["movie_session", "row", "seat"],
name="unique_ticket_for_session"
)
]
class Meta:
constraints = [
models.UniqueConstraint(
fields=["movie_session", "row", "seat"],
name="unique_ticket_for_session"
)
]

0 comments on commit 8d8594b

Please sign in to comment.