Skip to content

Commit

Permalink
Merge pull request #548 from HwangTaehyun/main
Browse files Browse the repository at this point in the history
Fix the validate of form should pass extra_validators
  • Loading branch information
azmeuk authored Jan 17, 2023
2 parents 6271d39 + 135b0e6 commit 64f835c
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 64f835c

Please sign in to comment.