We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d45445e + 67e2127 commit 1a7fd98Copy full SHA for 1a7fd98
docs/patterns/wtforms.rst
@@ -32,11 +32,11 @@ This is an example form for a typical registration page::
32
username = StringField('Username', [validators.Length(min=4, max=25)])
33
email = StringField('Email Address', [validators.Length(min=6, max=35)])
34
password = PasswordField('New Password', [
35
- validators.Required(),
+ validators.DataRequired(),
36
validators.EqualTo('confirm', message='Passwords must match')
37
])
38
confirm = PasswordField('Repeat Password')
39
- accept_tos = BooleanField('I accept the TOS', [validators.Required()])
+ accept_tos = BooleanField('I accept the TOS', [validators.DataRequired()])
40
41
In the View
42
-----------
0 commit comments