Actions
Support #7622
closedForms throw TypeError in Flask-WTF 1.1.0+
Start date:
01/18/2023
Due date:
% Done:
0%
Estimated time:
To be discussed:
Description
In Flask-WTF 1.1.0+, method form.validate_on_submit() calls form.validate(extra_validators=extra_validators), but currently used version of WTForms (2.2.1) does not support this parameter in form.validate(). This results in TypeError: validate() got an unexpected keyword argument 'extra_validators'.
Possible solutions are to add 'flask-wtf<1.1.0' to requirements.pip, or upgrade WTForms to version 2.3.1 or higher.
Details about this problem can be found here https://github.com/wtforms/flask-wtf/issues/547.
Related issues
Actions