Opened 15 years ago

Closed 14 years ago

Last modified 14 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: 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 Russell Keith-Magee, 15 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Ramiro Morales, 14 years ago

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 by Ramiro Morales, 14 years ago

(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