﻿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
15256	FormSet does not respect initial values after binding	mnbayazit	nobody	"After the form is posted, if an empty form is generated, it will be completely empty rather than having the initial values specified on the form. I believe we can fix this by modifying `_construct_form` like so:
{{{
        if self.is_bound and i < self.initial_form_count():
            defaults['data'] = self.data
            defaults['files'] = self.files
}}}
And completely remove this chunk from _get_empty_form
{{{
        if self.is_bound:
            defaults['data'] = self.data
            defaults['files'] = self.files
}}}
I don't know why an empty form should behave any differently after the formset has been bound... it only seems to be causing problems.
"		closed	Forms	dev		invalid	formset		Unreviewed	1	0	0	0	0	0
