Code

Opened 4 years ago

Closed 4 years ago

Last modified 4 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.

Attachments (0)

Change History (3)

comment:1 Changed 4 years ago by russellm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 4 years ago by ramiro

  • Resolution set to fixed
  • Status changed from new to closed

(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 4 years ago by ramiro

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.