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/user_pages/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/user_pages/forms.py')
-rw-r--r-- | mediagoblin/user_pages/forms.py | 6 |
1 files changed, 3 insertions, 3 deletions
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'<a href="http://daringfireball.net/projects/markdown/basics" target="_blank">' u'Markdown</a> 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('') |