Skip to content

Commit

Permalink
Merge pull request #233 from ZeusWPI/fix/232
Browse files Browse the repository at this point in the history
Pass through arguments to validate, fixes #232
  • Loading branch information
mcbloch authored Aug 14, 2024
2 parents d1459a5 + 3598017 commit d666744
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ def populate(self, location: Location) -> None:
if self.user_name.data is None:
self.user_name.data = session.get("anon_name", None)

def validate(self) -> bool:
def validate(self, *args, **kwargs) -> bool:
"""Check if the provided anon_name is not already taken"""
rv = OrderForm.validate(self)
rv = OrderForm.validate(self, *args, **kwargs)
if not rv:
return False

Expand Down

0 comments on commit d666744

Please sign in to comment.