diff options
author | Loïc Le Ninan <loic.leninan@gmail.com> | 2014-06-09 15:14:23 +0200 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2014-06-13 10:23:07 -0500 |
commit | 0742e11dff487e1af27652fcf63f7d53322018cd (patch) | |
tree | 82ccd63f72a30795baed0bda855dcd0e743de2d6 /mediagoblin/plugins/oauth/forms.py | |
parent | b9d990ac6a401d95eb25a006cd78a51d5cf0ff5a (diff) | |
download | mediagoblin-0742e11dff487e1af27652fcf63f7d53322018cd.tar.lz mediagoblin-0742e11dff487e1af27652fcf63f7d53322018cd.tar.xz mediagoblin-0742e11dff487e1af27652fcf63f7d53322018cd.zip |
Fixes #899 : DeprecationWarning about Required going away in WTForms 3.0. Replaced Required with InputRequired.
Diffstat (limited to 'mediagoblin/plugins/oauth/forms.py')
-rw-r--r-- | mediagoblin/plugins/oauth/forms.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mediagoblin/plugins/oauth/forms.py b/mediagoblin/plugins/oauth/forms.py index 5edd992a..ddf4d390 100644 --- a/mediagoblin/plugins/oauth/forms.py +++ b/mediagoblin/plugins/oauth/forms.py @@ -24,21 +24,21 @@ from mediagoblin.tools.translate import lazy_pass_to_ugettext as _ class AuthorizationForm(wtforms.Form): client_id = wtforms.HiddenField(u'', - validators=[wtforms.validators.Required()]) - next = wtforms.HiddenField(u'', validators=[wtforms.validators.Required()]) + validators=[wtforms.validators.InputRequired()]) + next = wtforms.HiddenField(u'', validators=[wtforms.validators.InputRequired()]) allow = wtforms.SubmitField(_(u'Allow')) deny = wtforms.SubmitField(_(u'Deny')) class ClientRegistrationForm(wtforms.Form): - name = wtforms.TextField(_('Name'), [wtforms.validators.Required()], + name = wtforms.TextField(_('Name'), [wtforms.validators.InputRequired()], description=_('The name of the OAuth client')) description = wtforms.TextAreaField(_('Description'), [wtforms.validators.Length(min=0, max=500)], description=_('''This will be visible to users allowing your application to authenticate as them.''')) type = wtforms.SelectField(_('Type'), - [wtforms.validators.Required()], + [wtforms.validators.InputRequired()], choices=[ ('confidential', 'Confidential'), ('public', 'Public')], |