Skip to content

Commit

Permalink
hotfix: len >= 2
Browse files Browse the repository at this point in the history
  • Loading branch information
crypto-rizzo committed Nov 21, 2023
1 parent 545f3ae commit cd8d8fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/apps/checkout/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def clean(self):

# TEMP: Disallow more than one tier being selected for art-basel (cannot select big+lil)
# Note: Some long-term fix of "exclusive tiers" will be useful (i.e., A disallows B)
if len(self.tiers_all) > 2 and tier.event.pk == 105:
if len(self.tiers_all) >= 2 and tier.event.pk == 105:
raise ValidationError("Only 1 tier allowed per person")

if int(item["id"]) == tier.id:
Expand Down

0 comments on commit cd8d8fe

Please sign in to comment.