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

@@ -46,7 +46,7 @@ class CsrfForm(Form):
is included in the POST."""
csrf_token = HiddenField("",
[validators.Required()])
[validators.InputRequired()])
def render_csrf_form_token(request):