Opened 3 hours ago

Last modified 3 hours ago

#36115 assigned New feature

Add a link to navigate to the related object for ForeignKey and OneToOneField values in list_display

Reported by: Antoliny Owned by: Antoliny
Component: contrib.admin Version: 5.1
Severity: Normal Keywords: list_display, foreignkey, onetoonefield
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Antoliny)

Currently, admin list view displays ForeignKey and OneToOneField values as plain text.
However, in the change page, admin provides icons for ForeignKey and OneToOneField that allow additional operations on the corresponding objects and models.

How about adding links for ForeignKey and OneToOneField in the list page?
I think provide to navigation to the related object by clicking the link, it would be better in terms of accessibility.

Attachments (2)

foreign_onetoone_change_page.png (50.9 KB ) - added by Antoliny 3 hours ago.
foreign_onetoone_list_add_link.png (40.2 KB ) - added by Antoliny 3 hours ago.

Download all attachments as: .zip

Change History (4)

by Antoliny, 3 hours ago

comment:1 by Antoliny, 3 hours ago

Owner: set to Antoliny
Status: newassigned

comment:2 by Antoliny, 3 hours ago

Description: modified (diff)

by Antoliny, 3 hours ago

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