From 0742e11dff487e1af27652fcf63f7d53322018cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Le=20Ninan?= Date: Mon, 9 Jun 2014 15:14:23 +0200 Subject: Fixes #899 : DeprecationWarning about Required going away in WTForms 3.0. Replaced Required with InputRequired. --- mediagoblin/plugins/oauth/forms.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mediagoblin/plugins/oauth/forms.py') 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')], -- cgit v1.2.3