Skip to content

Commit

Permalink
refactor cart routes
Browse files Browse the repository at this point in the history
  • Loading branch information
rm03 committed Jan 3, 2025
1 parent 70ddf64 commit 5afd398
Show file tree
Hide file tree
Showing 2 changed files with 214 additions and 220 deletions.
3 changes: 3 additions & 0 deletions backend/clubs/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1862,6 +1862,9 @@ def reduce_quantity(self, amount: int) -> bool:
return True
return False

class Meta:
unique_together = (("event", "name"),)


class CartItem(models.Model):
"""
Expand Down
Loading

0 comments on commit 5afd398

Please sign in to comment.