InlineModelAdmin 'form' option defaults to ModelForm, not BaseModelForm
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
Change History
(6)
Triage Stage: |
Unreviewed → Accepted
|
Has patch: |
set
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Err, of course I meant "explicitly setting 'form' to BaseModelForm" and not "explicitly setting 'form' to BaseModelAdmin".
Replying to stijn@typograaf.be: