Fixes #899 : DeprecationWarning about Required going away in WTForms 3.0. Replaced Required with InputRequired.

This commit is contained in:
Loïc Le Ninan
2014-06-09 15:14:23 +02:00
committed by Christopher Allan Webber
parent b9d990ac6a
commit 0742e11dff
10 changed files with 38 additions and 38 deletions

View File

@@ -59,7 +59,7 @@ def get_submit_start_form(form, **kwargs):
class AddCollectionForm(wtforms.Form):
title = wtforms.TextField(
_('Title'),
[wtforms.validators.Length(min=0, max=500), wtforms.validators.Required()])
[wtforms.validators.Length(min=0, max=500), wtforms.validators.InputRequired()])
description = wtforms.TextAreaField(
_('Description of this collection'),
description=_("""You can use