Skip to content
Myr

Fixed WTForms example.

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 9f0b242 · Browse files · 1 file+3 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+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:docs/patterns/wtforms.rst+3 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', [Required(),26 EqualTo('confirm', message='Passwords must match')])27 confirm = PasswordField('Repeat Password')25 password = PasswordField('New Password', [validators.Required()])26 confirm = PasswordField('Repeat Password', [validators.EqualTo(27 'confirm', message='Passwords must match')])28 accept_tos = BooleanField('I accept the TOS', [validators.Required()])2930In the View31-----------
82 unmodified lines