﻿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
3632	initial values lost when calling newforms.form_for_instance() with a custom form arg	ludo@…	Thejaswi Puthraya	"Initial values are lost when calling newforms.form_for_instance() with a custom form arg, eg

{{{f = forms.form_for_instance(u)}}} is ok

{{{f = forms.form_for_instance(u, form=MyCustomForm)}}} is not

The problem seems to be in DeclarativeFieldsMetaclass.__new__ where the 'base_fields' attribute gets wiped out when using a custom form class. A tentative patch, probably broken as my understanding of metaclass programming is nil, attached to this ticket.

"		closed	Forms	dev		wontfix	form_for_instance, decsprint01	gary.wilson@… mtrier@… larlet@…	Ready for checkin	1	0	0	0	0	0
