Fixes #899 : DeprecationWarning about Required going away in WTForms 3.0. Replaced Required with InputRequired.
This commit is contained in:
committed by
Christopher Allan Webber
parent
b9d990ac6a
commit
0742e11dff
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user