From 135b0e6d96c6bb695bca355656262a0e3915dd1a Mon Sep 17 00:00:00 2001 From: Taehyun Hwang Date: Wed, 18 Jan 2023 00:56:55 +0900 Subject: [PATCH] Fix the validate of form should pass extra_validators (#547) Co-authored-by: jwag956 Co-authored-by: chlrlrhs95 --- src/flask_wtf/form.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flask_wtf/form.py b/src/flask_wtf/form.py index a443d81b..c7f52e02 100644 --- a/src/flask_wtf/form.py +++ b/src/flask_wtf/form.py @@ -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.