﻿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
10090	small error in example code for looping over hidden form fields	casey	nobody	"<form action=""/contact/"" method=""POST"">
    {% for field in form.visible_fields %}
        <div class=""fieldWrapper"">

            {# Include the hidden fields in the form #}
            {% if forloop.first %}
                {% for hidden in form.hidden_fields %}
                {{ field }}
                {% endfor %}
            {% endif %}

            {{ field.errors }}
            {{ field.label_tag }}: {{ field }}
        </div>
    {% endfor %}
    <p><input type=""submit"" value=""Send message"" /></p>
</form>

This is from ""Looping Over Hidden and Visible Fields"" at http://docs.djangoproject.com/en/dev/topics/forms/#topics-forms-index. There is an error in the inner for loop foir hidden fields. In this loop, ""{{field}}"""" should be ""{{hidden}}"" to reflect the variable name in the inner loop.
"		closed	Documentation	1.0		duplicate			Unreviewed	0	0	0	0	0	0
