#8400: ModelAdmin.get_fieldsets call to get_form should include the obj 
parameter
--------------------------------------+-------------------------------------
 Reporter:  sureshkannan              |       Owner:  nobody    
   Status:  new                       |   Milestone:  1.0       
Component:  Admin interface           |     Version:  SVN       
 Keywords:  ModelAdmin.get_fieldsets  |       Stage:  Unreviewed
Has_patch:  0                         |  
--------------------------------------+-------------------------------------
 In ModelAdmin.get_fieldsets

 {{{
 form=self.get_form(request)
 }}}
 should be changed to
 form=self.get_form(request,obj)

 If get_form has been overridden to generate different forms based on a
 field in the obj
 then the obj parameter must be passed in. This seems to be done correctly
 in the
 formset counterpart ModelAdmin.get_formsets where inline.get_formset is
 called
 with the obj parameter.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8400>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to