﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
25481	Documentation: Add field.help_text to looping over a form's fields	Wim Feijen	nobody	"On https://docs.djangoproject.com/en/dev/topics/forms/#looping-over-the-form-s-fields

the example of looping over the form's fields omits {{ field.help_text }}, though this field is outputted by default by {{ form.as_ul }}. I believe we should add {{ field.help_text }} in the example to be both consistent and complete. 

In addition, but not related, {{ field.errors }} might need a span for the example to be usable in real life. 

From the docs:
---
Looping over the form’s fields¶

If you’re using the same HTML for each of your form fields, you can reduce duplicate code by looping through each field in turn using a {% for %} loop:


{{{
{% for field in form %}
    <div class=""fieldWrapper"">
        {{ field.errors }}
        {{ field.label_tag }} {{ field }}
    </div>
{% endfor %}

{% for field in form %}
    <div class=""fieldWrapper"">
        {{ field.errors }}
        {{ field.label_tag }} {{ field }}
    </div>
{% endfor %}
}}}
"	Uncategorized	new	Documentation	dev	Normal				Unreviewed	0	0	0	0	1	0
