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 7703,ModelAdmin.get_fieldsets calls ModelAdmin.get_form without the obj parameter,sureshkannan,nobody,"When subclassing {{{ModelAdmin}}} to generate different forms depending on a field in an existing object or a parameter in {{{request.GET}}}, then he/she needs to override {{{ModelAdmin.get_form(self,request,obj=None)}}}. {{{ModelAdmin.get_form}} is called in multiple places but when it is called from get_fieldsets the obj parameter is not passed to the get_form function. obj=None appears in the parameter list of get_fieldsets, so the simple fix is to change from {{{get_form(request)}}} to {{{get_form(request,obj)}}} in the {{{ModelAdmin.get_fieldsets}}} function.",,closed,contrib.admin,newforms-admin,,duplicate,"get_form, ModelAdmin",,Design decision needed,1,0,1,0,0,0