Flask-security: FlaskWTFDeprecationWarning

Created on 16 Oct 2016  路  5Comments  路  Source: mattupstate/flask-security

I get the following error when running a Flask app at the moment:

<- Cut ->
sphuc.py:34: FlaskWTFDeprecationWarning: "flask_wtf.Form" has been renamed to "FlaskForm" and will be removed in 1.0.
form = NameForm()
<- Cut ->

Having looked at the issue it seems that the warning is coming from/due to flask-security, more specifically this line in forms.py:

from flask_wtf import Form as BaseForm

If I understand things correctly that should instead read:

from flask_wtf import FlaskForm as BaseForm

Most helpful comment

Looks like this was fixed in https://github.com/mattupstate/flask-security/pull/549

Can someone push up a new release to pypi?

All 5 comments

Looks like this was fixed in https://github.com/mattupstate/flask-security/pull/549

Can someone push up a new release to pypi?

@neaket360pi if you need a quick solution, you can use Flask-Security-Fork from PyPI (pip uninstall Flask-Security, pip install Flask-Security-Fork - no other changes needed).

Thanks @jirikuncar

How bout it? Tired of warning messages taking up the console.

closed via #553

Was this page helpful?
0 / 5 - 0 ratings

Related issues

asmodehn picture asmodehn  路  6Comments

mafrosis picture mafrosis  路  7Comments

mafrosis picture mafrosis  路  6Comments

slippers picture slippers  路  4Comments

dappiu picture dappiu  路  8Comments