[Django] #36115: Add a link to navigate to the related object for ForeignKey and OneToOneField values in list_display

13 views
Skip to first unread message

Django

unread,
Jan 19, 2025, 6:36:46 AM1/19/25
to django-...@googlegroups.com
#36115: Add a link to navigate to the related object for ForeignKey and
OneToOneField values in list_display
-------------------------------------+-------------------------------------
Reporter: Antoliny | Type: New
| feature
Status: new | Component:
| contrib.admin
Version: 5.1 | Severity: Normal
Keywords: list_display, | Triage Stage:
foreignkey, onetoonefield | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
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.
[[Image(foreign_onetoone_change_page.png)]]
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.
--
Ticket URL: <https://code.djangoproject.com/ticket/36115>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jan 19, 2025, 6:36:56 AM1/19/25
to django-...@googlegroups.com
#36115: Add a link to navigate to the related object for ForeignKey and
OneToOneField values in list_display
-------------------------------------+-------------------------------------
Reporter: Antoliny | Owner: (none)
Type: New feature | Status: new
Component: contrib.admin | Version: 5.1
Severity: Normal | Resolution:
Keywords: list_display, | Triage Stage:
foreignkey, onetoonefield | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Antoliny):

* Attachment "foreign_onetoone_change_page.png" added.

Django

unread,
Jan 19, 2025, 6:37:10 AM1/19/25
to django-...@googlegroups.com
#36115: Add a link to navigate to the related object for ForeignKey and
OneToOneField values in list_display
-------------------------------------+-------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: New feature | Status: assigned
Component: contrib.admin | Version: 5.1
Severity: Normal | Resolution:
Keywords: list_display, | Triage Stage:
foreignkey, onetoonefield | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Antoliny):

* owner: (none) => Antoliny
* status: new => assigned

--
Ticket URL: <https://code.djangoproject.com/ticket/36115#comment:1>

Django

unread,
Jan 19, 2025, 6:43:05 AM1/19/25
to django-...@googlegroups.com
#36115: Add a link to navigate to the related object for ForeignKey and
OneToOneField values in list_display
-------------------------------------+-------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: New feature | Status: assigned
Component: contrib.admin | Version: 5.1
Severity: Normal | Resolution:
Keywords: list_display, | Triage Stage:
foreignkey, onetoonefield | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by Antoliny:

Old description:

> 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.
> [[Image(foreign_onetoone_change_page.png)]]
> 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.

New description:

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.
[[Image(foreign_onetoone_change_page.png)]]
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.
[[Image(foreign_onetoone_list_add_link.png)]]

--
--
Ticket URL: <https://code.djangoproject.com/ticket/36115#comment:2>

Django

unread,
Jan 19, 2025, 6:43:12 AM1/19/25
to django-...@googlegroups.com
#36115: Add a link to navigate to the related object for ForeignKey and
OneToOneField values in list_display
-------------------------------------+-------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: New feature | Status: assigned
Component: contrib.admin | Version: 5.1
Severity: Normal | Resolution:
Keywords: list_display, | Triage Stage:
foreignkey, onetoonefield | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Antoliny):

* Attachment "foreign_onetoone_list_add_link.png" added.

Django

unread,
Jan 19, 2025, 2:32:47 PM1/19/25
to django-...@googlegroups.com
#36115: Add a link to navigate to the related object for ForeignKey and
OneToOneField values in list_display
-------------------------------------+-------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: New feature | Status: closed
Component: contrib.admin | Version: 5.1
Severity: Normal | Resolution: wontfix
Keywords: list_display, | Triage Stage:
foreignkey, onetoonefield | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

* resolution: => wontfix
* status: assigned => closed

Comment:

Thanks for the idea, however, we cannot endlessly complicate the admin
with additional features. In this case, I feel that for most cases, the
links would add more clutter than the benefit they might provide.
--
Ticket URL: <https://code.djangoproject.com/ticket/36115#comment:3>
Reply all
Reply to author
Forward
0 new messages