﻿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
13009	provide django.forms field type info for use in templates	Tom von Schwerdtner	David Smith	"My use case is that it would be useful to have access to this info from templates when generating forms, eg:

{{{

{% for field in form.fields %}
    {% if field.type == 'checkbox' %}
      {# render one way... #}
    {% else %}
      {# render another way #}
    {% endif %}
{% endfor %}

}}}

FWIW, django.contrib.admin seems to get around this problem in AdminField by adding an is_checkbox attribute, but it seems to me that the type of field being rendered should be easily available in the template, in other words, IMHO this makes sense as a core feature of django.forms.
"	New feature	closed	Forms	dev	Normal	fixed			Ready for checkin	1	0	0	0	0	0
