InlineModelAdmin 'form' option defaults to ModelForm, not BaseModelForm
|Reported by:||Owned by:||nobody|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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