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 over 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 #1

Updated by Rajmund Hruška over 1 year ago

  • Status changed from New to In Review
  • Target version changed from Backlog to 2.11

Merged the proposed solution to devel.

Pavel Kácha shall the update of WTForms (and possibly other packages) be handled in this issue or we will create a new issue?

Actions #2

Updated by Pavel Kácha over 1 year ago

Rajmund Hruška wrote in #note-1:

Merged the proposed solution to devel.

Pavel Kácha shall the update of WTForms (and possibly other packages) be handled in this issue or we will create a new issue?

How about keeping this separate and go for a "big upgrade" in #7619?

Actions #3

Updated by Radko Krkoš over 1 year ago

Actions #4

Updated by Jakub Judiny over 1 year ago

  • Assignee set to Jakub Judiny
Actions #5

Updated by Rajmund Hruška over 1 year ago

  • Status changed from In Review to Closed
  • To be discussed deleted (Yes)
Actions

Also available in: Atom PDF