Project

General

Profile

Actions

Support #7622

closed

Forms throw TypeError in Flask-WTF 1.1.0+

Added by Jakub Judiny over 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Installation
Target version:
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

Related to Mentat - Support #7632: Mentat dependencies upgradeClosedJakub Judiny02/28/2023

Actions
Actions

Also available in: Atom PDF