﻿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
5810	Form subclass trying to override parent form field	nwp	nobody	"If a form subclass tries to override a parent form's field definition, the definition is overridden but the field is repeated.



{{{
class FormA(forms.Form):
    somefield = forms.AnyField(anyargs)

class FormB(FormA):
    somefield = forms.OtherField(otherargs)
}}}

FormB ends up with *two* somefields, both forms.Otherfield. This seems to me to be a bug in !DeclarativeFieldsMetaclass's {{{__new__}}} method - I think it should do some checking for duplicates round about as it adds fields to base_fields.

This is svn r6471.
"		closed	Forms	dev		fixed			Unreviewed	0	0	0	0	0	0
