﻿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
19445	Fieldsets' validation doesn't call get_form	Krzysztof Jurewicz	Nick Sandford	"In django.contrib.admin.validation, function check_formfield checks presence of a field based on ""form"" attribute on admin class. If get_form method is overriden and it returns form class which adds some additional fields, those cannot be used in ""fieldsets"" attribute because ImproperlyConfigured exception is raised.

The workaround is to use undocumented get_fieldsets method to specify additional fields instead of ""fieldsets"" attribute.

The easiest way to fix this would be probably to disable fieldsets' validation entirely (as we are not able to anticipate what will be the result of calling get_form) or to make get_fieldsets method a documented one and make a note that if we add fields in get_form, then we should not set ""fieldsets"" attribute."	Bug	closed	contrib.admin	1.4	Normal	fixed			Accepted	1	0	0	0	1	0
