Skip to content

Commit

Permalink
Fix the validate of form should pass extra_validators (pallets-eco#547)
Browse files Browse the repository at this point in the history
Co-authored-by: jwag956 <[email protected]>
Co-authored-by: chlrlrhs95 <[email protected]>
  • Loading branch information
3 people committed Jan 17, 2023
1 parent 6271d39 commit 6fafba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flask_wtf/form.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def validate_on_submit(self, extra_validators=None):
"""Call :meth:`validate` only if the form is submitted.
This is a shortcut for ``form.is_submitted() and form.validate()``.
"""
return self.is_submitted() and self.validate(extra_validators)
return self.is_submitted() and self.validate(extra_validators=extra_validators)

def hidden_tag(self, *fields):
"""Render the form's hidden fields in one call.
Expand Down

0 comments on commit 6fafba6

Please sign in to comment.