﻿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
29011	forms.Field with space in dynamically generated forms.Form leads to wrong assigned id in generated HTML form	pdehaye	nobody	"If you do:

{{{
import django
from django.forms import Form
from django.forms import CharField
PersonForm = type('Person', (Form,), {""work address"":CharField(max_length=128)})
person = PersonForm()
person.as_ul()
}}}

You get 
{{{
'<li><label for=""id_work address"">Work address:</label> <input type=""text"" name=""work address"" maxlength=""128"" required id=""id_work address"" /></li>'
}}}

I think the `id=""id_work address"" ` is suboptimal here. Maybe everything should be underscored? At least the doc, which references `id_<field-name>`, should be improved (also present in 2.0 doc)"	Uncategorized	new	Forms	1.11	Normal				Unreviewed	0	0	0	0	1	0
