#13002: InlineModelAdmin 'form' option defaults to ModelForm, not BaseModelForm
-----------------------------------------+----------------------------------
          Reporter:  st...@typograaf.be  |         Owner:  nobody
            Status:  new                 |     Milestone:        
         Component:  Documentation       |       Version:  1.1   
        Resolution:                      |      Keywords:        
             Stage:  Unreviewed          |     Has_patch:  0     
        Needs_docs:  0                   |   Needs_tests:  0     
Needs_better_patch:  0                   |  
-----------------------------------------+----------------------------------
Changes (by anonymous):

  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 Err, of course I meant "explicitly setting 'form' to BaseModelForm" and
 not "explicitly setting 'form' to BaseModelAdmin".

 Replying to [ticket:13002 st...@typograaf.be]:
 > While messing around a bit with admin customization, I noticed that the
 form option in an InlineModelAdmin actually defaults to ModelForm, and not
 BaseModelForm as the documentation mentions. Explicitly setting 'form' to
 BaseModelAdmin gives rise to assorted errors in the admin (e.g. "... has
 no attribute _meta ...") whereas setting it to ModelForm works without a
 hitch, which leads me to believe that there is no magic going on and that
 this is just a little factual error in the docs.
 >
 > The specific doc page I'm talking about is this one:
 http://docs.djangoproject.com/en/dev/ref/contrib/admin/#form

-- 
Ticket URL: <http://code.djangoproject.com/ticket/13002#comment:1>
Django <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 django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to