﻿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
10208	ModelAdmin ignores 'exclude' and 'fields' attributes of ModelForm.Meta	Alexander Vasiljev <a.a.v.asiljev@…>	Alex Gaynor	"This way exclusion works:


{{{
class RegionAdmin(admin.ModelAdmin):
    #form = RegionForm
    exclude = ('changed_by', 'last_changed')

admin.site.register(Region, RegionAdmin)
}}}


but this way:


{{{
class RegionAdmin(admin.ModelAdmin):
    form = RegionForm
    #exclude = ('changed_by', 'last_changed')

admin.site.register(Region, RegionAdmin)
}}}


where


{{{
class RegionForm(forms.ModelForm):
    class Meta:
        model = Region
        exclude = ('changed_by', 'last_changed')
}}}


does not. This ticket is probably related to the #8071, however there are no foreing keys in the model.
"		closed	Forms	1.0		fixed		Keith Bussell django@…	Ready for checkin	1	0	0	0	0	0
