Source

django-form-utils / form_utils / templates / form_utils / fields_as_lis.html

{% for field in fields %}
{% if field.is_hidden %}
{{ field }}
{% else %}
<li{{ field.row_attrs }}>
  {{ field.errors }}
  {{ field.label_tag }}
  {{ field }}
</li>
{% endif %}
{% endfor %}