{% if field.type == "BooleanField" %}
|
{{ field }} {{ field.label }} |
{% else %}
{{ field.label }} |
{{ field }} |
{% end %}
{% endfor %}
.. attribute:: flags
An object containing boolean flags set either by the field itself, or
by validators on the field. For example, the built-in
:func:`~wtforms.validators.required` validator sets the `required` flag.
An unset flag will result in :const:`False`.
.. code-block:: html+django
{% for field in form %}