[Flask] Flask-WTF: BoolenaField not rendered

Lorenzo Mainardi lormayna at gmail.com
Sat May 13 13:45:22 EDT 2017


Hello, I'm try to render a simple form with flask-wtf and quick_forms.
This is my form:
`class SignupForm(FlaskForm):

username = StringField('Username', [validators.Length(min=4, max=25)])

accept_tos = BooleanField('I accept the TOS', [validators.DataRequired()])

prefs = BooleanField()`

This is the template:
{{ wtf.quick_form(form, action="/signup") }}

Unfortunately the BooleanFields are not rendered. All the other fields look
correct.

-- 
LORENZO MAINARDI
http://blog.mainardi.me
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/flask/attachments/20170513/873fce67/attachment.html>


More information about the Flask mailing list