Skip to content
Myr

Corrected validator usage in the wtforms docs.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent be15340 · Browse files · 1 file+5 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−3 removed

  • other:+5 added−3 removed

1 file+5 added−3 removed

modified:docs/patterns/wtforms.rst+5 added-3 removed
20 unmodified lines
2122 class RegistrationForm(Form):23 username = TextField('Username', [validators.Length(min=4, max=25)])24 email = TextField('Email Address', [validators.Length(min=6, max=35)])25 password = PasswordField('New Password', [validators.Required()])26 confirm = PasswordField('Repeat Password', [validators.EqualTo(27 'confirm', message='Passwords must match')])25 password = PasswordField('New Password', [26 validators.Required(),27 validators.EqualTo('confirm', message='Passwords must match')28 ])29 confirm = PasswordField('Repeat Password')30 accept_tos = BooleanField('I accept the TOS', [validators.Required()])3132In the View33-----------
82 unmodified lines