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/user_pages/forms.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mediagoblin/user_pages/forms.py') diff --git a/mediagoblin/user_pages/forms.py b/mediagoblin/user_pages/forms.py index eb786f47..1a09864b 100644 --- a/mediagoblin/user_pages/forms.py +++ b/mediagoblin/user_pages/forms.py @@ -21,7 +21,7 @@ from mediagoblin.tools.translate import lazy_pass_to_ugettext as _ class MediaCommentForm(wtforms.Form): comment_content = wtforms.TextAreaField( _('Comment'), - [wtforms.validators.Required()], + [wtforms.validators.InputRequired()], description=_(u'You can use ' u'' u'Markdown for formatting.')) @@ -53,11 +53,11 @@ class MediaCollectForm(wtforms.Form): class CommentReportForm(wtforms.Form): report_reason = wtforms.TextAreaField( _('Reason for Reporting'), - [wtforms.validators.Required()]) + [wtforms.validators.InputRequired()]) reporter_id = wtforms.HiddenField('') class MediaReportForm(wtforms.Form): report_reason = wtforms.TextAreaField( _('Reason for Reporting'), - [wtforms.validators.Required()]) + [wtforms.validators.InputRequired()]) reporter_id = wtforms.HiddenField('') -- cgit v1.2.3