Open sylvain471 opened 10 months ago
Thanks for pointing out the issue, @sylvain471 Looks like there might be some update in the latest flask wtf package.
I came upon the same problem. Editing the RegisterForm class seems to overcome this problem (the idea came after looking at the source code of the FlaskForm class). I added the extra_validators keyword parameter to:
form.RegisterForm.validate_on_submit
and adjusted the call to the mother class (FlaskForm) method self.validate(extra_validators)
.
I pushed these changes on my forked version of the repo, in case this solution seems acceptable.
Hi, thanks for this very nice repo.
I couldn't install the requirements using
pip install -r requirements.txt
my terminal threw some errors that I couldn't resolve.I installed all packages regardless of the version number given in the
requirements.txt
.I ran the steps mentioned in a previous issue
When I started the app I tried to sign up and the following issue came up
TypeError: validate() got an unexpected keyword argument 'extra_validators'
Finding the
form.py
file in theflask_wtf
package directory and changing the methodvalidate_on_submit
ie removing extra_validator from validate, solved the problem.