Changed 'Required' (undefined) to 'DataRequired' per the other fields.

geoffjukes 2013-08-27 12:58:46 -07:00
parent a6fff39c09
commit 42b4a2d000

@ -206,7 +206,7 @@ Now that we've done our object model, time to build the form that goes with it.
DataRequired(), DataRequired(),
EqualTo('password', message='Passwords must match') EqualTo('password', message='Passwords must match')
]) ])
accept_tos = BooleanField('I accept the TOS', [Required()]) accept_tos = BooleanField('I accept the TOS', [DataRequired()])
recaptcha = RecaptchaField() recaptcha = RecaptchaField()
``` ```