﻿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
11632	show_hidden_initial=True produces invalid HTML	geber@…	Karen Tracey	"When you have a model like this:

{{{

class MyModel(models.Model):
    datetime = models.TimestampField(_('Affected Time Start'), default=datetime.datetime.now)
}}}


And a Form like this:


{{{
class MyModelForm(forms.ModelForm):
    class Meta:
        model = MyModel
        fields = ('datetime',)
}}}

The generated HTML (in my case with prefix=2) looks like that:


{{{
<input type=""text"" name=""2-datetime"" value=""2009-08-04 11:13:40"" id=""id_2-datetime"" /><input type=""hidden"" name=""initial-2-datetime"" value=""2009-08-04 11:13:40.694547"" id=""id_2-datetime"" />
}}}

Obviously, the HTML ID is the same in the hidden field, which causes some JS-trouble.

Hope you'll fix it soon.

Cheers."		closed	Forms	1.1		fixed	show_hidden_initial		Accepted	1	0	0	0	0	0
