Skip to content

Commit 1a7fd98

Browse files
committed
Merge pull request pallets#1748 from gaetan-petit/patch-1
Update deprecated references
2 parents d45445e + 67e2127 commit 1a7fd98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/patterns/wtforms.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ This is an example form for a typical registration page::
3232
username = StringField('Username', [validators.Length(min=4, max=25)])
3333
email = StringField('Email Address', [validators.Length(min=6, max=35)])
3434
password = PasswordField('New Password', [
35-
validators.Required(),
35+
validators.DataRequired(),
3636
validators.EqualTo('confirm', message='Passwords must match')
3737
])
3838
confirm = PasswordField('Repeat Password')
39-
accept_tos = BooleanField('I accept the TOS', [validators.Required()])
39+
accept_tos = BooleanField('I accept the TOS', [validators.DataRequired()])
4040

4141
In the View
4242
-----------

0 commit comments

Comments
 (0)