Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace deprecated flask-wtf references to 'From' with 'FlaskForm'. #90

Merged
merged 1 commit into from
Jan 9, 2017

Conversation

jcass77
Copy link
Contributor

@jcass77 jcass77 commented Jan 9, 2017

The Flask-WTF project has renamed the 'Form' class to 'FlaskForm', and the deprecated reference will be removed in version 1.0.

A side effect of this was to reveal an error in the __init__ method signature used in the Stormpath-Flask code:

def __init__(self, formdata=_Auto, obj=None, prefix='', csrf_context=None, secret_key=None, csrf_enabled=None,
config=None, *args, **kwargs):
super(RegistrationForm, self).__init__(formdata, obj, prefix, csrf_context, secret_key, csrf_enabled, *args,
**kwargs)
(the *args argument causes a TypeError: __init__() takes at most 2 arguments (7 given)).

This PR switches to the new form name, and bumps the version dependency on Flask-WTF to 0.12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants