Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#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: UI/UX:

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 Changed 6 years ago by Russell Keith-Magee

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedAccepted

comment:2 Changed 6 years ago by Ramiro Morales

Resolution: fixed
Status: newclosed

(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.

comment:3 Changed 6 years ago by Ramiro Morales

(In [15125]) [1.2.X] 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.

Backport of [15124] from trunk.

Note: See TracTickets for help on using tickets.
Back to Top