#13307 closed (fixed)
documentation for 'Generic relations in forms and admin' is incorrect, or at least misleading
| Reported by: | loki77 | Owned by: | nobody |
|---|---|---|---|
| Component: | Documentation | Version: | 1.1 |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Accepted | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Here: http://docs.djangoproject.com/en/1.1/ref/contrib/contenttypes/#generic-relations-in-forms-and-admin
It talks about 'generic.GenericInlineModelAdmin' as if that can be used in admin.py to add Inlines to the admin. I messed with this for a while, getting nowhere (no Inline would show up in the model) till I broke open the code itself and found that the name of the Inline objects that should be used are 'GenericStackedInline' and 'GenericTabularInline'. Once I used one of those the inline appeared as expected.
Change History (3)
comment:1 by , 16 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:2 by , 15 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:3 by , 15 years ago
Note:
See TracTickets
for help on using tickets.
(In [15124]) Fixed #13307 -- Enhanced the generic inlines documentation by mentioning the concrete Generic{Tabular,Stacked}Inline classes that should be used. Thanks loki77 for the report.