[Django] #36080: Add a link to navigate to the object through str in the inline form.

27 views
Skip to first unread message

Django

unread,
Jan 9, 2025, 7:12:20 PM1/9/25
to django-...@googlegroups.com
#36080: Add a link to navigate to the object through str in the inline form.
------------------------------+-----------------------------------------
Reporter: Antoliny | Type: New feature
Status: new | Component: contrib.admin
Version: dev | Severity: Normal
Keywords: Inline, Link | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+-----------------------------------------
It would be better if the current str of the object in the inline form,
which is in a <p> tag, could be enhanced by adding a link through an <a>
tag to navigate to the object.
[[Image(tabular_inline_object_str_link.png)]]
--
Ticket URL: <https://code.djangoproject.com/ticket/36080>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jan 9, 2025, 7:12:25 PM1/9/25
to django-...@googlegroups.com
#36080: Add a link to navigate to the object through str in the inline form.
-------------------------------+--------------------------------------
Reporter: Antoliny | Owner: (none)
Type: New feature | Status: new
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: Inline, Link | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Antoliny):

* Attachment "tabular_inline_object_str_link.png" added.

Django

unread,
Jan 9, 2025, 7:12:53 PM1/9/25
to django-...@googlegroups.com
#36080: Add a link to navigate to the object through str in the inline form.
-------------------------------+--------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: New feature | Status: assigned
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: Inline, Link | Triage Stage: 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/36080#comment:1>

Django

unread,
Jan 9, 2025, 9:03:02 PM1/9/25
to django-...@googlegroups.com
#36080: Add a link to navigate to the object through str in the inline form.
-------------------------------+--------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: New feature | Status: assigned
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: Inline, Link | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Antoliny):

* Attachment "inline_object_str_add_link.png" added.

Django

unread,
Jan 9, 2025, 9:03:46 PM1/9/25
to django-...@googlegroups.com
#36080: Add a link to navigate to the object through str in the inline form.
-------------------------------+--------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: New feature | Status: assigned
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: Inline, Link | Triage Stage: 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:

> It would be better if the current str of the object in the inline form,
> which is in a <p> tag, could be enhanced by adding a link through an <a>
> tag to navigate to the object.
> [[Image(tabular_inline_object_str_link.png)]]

New description:

It would be better if the current str of the object in the inline form,
which is in a <p>, <span> tag, could be enhanced by adding a link through
an <a> tag to navigate to the object.
[[Image(inline_object_str_add_link.png)]]

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

Django

unread,
Jan 10, 2025, 5:42:29 AM1/10/25
to django-...@googlegroups.com
#36080: Add a link to navigate to the object through str in the inline form.
-------------------------------+--------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: New feature | Status: assigned
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: Inline, Link | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Sarah Boyce):

* Attachment "image-20250110-114223.png" added.

Django

unread,
Jan 10, 2025, 5:42:52 AM1/10/25
to django-...@googlegroups.com
#36080: Add a link to navigate to the object through str in the inline form.
-------------------------------+--------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: New feature | Status: closed
Component: contrib.admin | Version: dev
Severity: Normal | Resolution: invalid
Keywords: Inline, Link | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Sarah Boyce):

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

Comment:

This exists already but you need to have the admin registered for that
model for the link to be available

[[Image(image-20250110-114223.png)]]
--
Ticket URL: <https://code.djangoproject.com/ticket/36080#comment:3>

Django

unread,
Jan 11, 2025, 9:32:11 PM1/11/25
to django-...@googlegroups.com
#36080: Add a link to navigate to the object through str in the inline form.
-------------------------------+--------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: New feature | Status: closed
Component: contrib.admin | Version: dev
Severity: Normal | Resolution: invalid
Keywords: Inline, Link | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Antoliny):

* Attachment "tabular_inline_link.png" added.

Django

unread,
Jan 11, 2025, 9:32:17 PM1/11/25
to django-...@googlegroups.com
#36080: Add a link to navigate to the object through str in the inline form.
-------------------------------+--------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: New feature | Status: closed
Component: contrib.admin | Version: dev
Severity: Normal | Resolution: invalid
Keywords: Inline, Link | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Antoliny):

* Attachment "inline_link_change.png" added.

Django

unread,
Jan 11, 2025, 9:33:53 PM1/11/25
to django-...@googlegroups.com
#36080: Add a link to navigate to the object through str in the inline form.
-------------------------------+--------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: New feature | Status: closed
Component: contrib.admin | Version: dev
Severity: Normal | Resolution: invalid
Keywords: Inline, Link | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Antoliny):

* Attachment "inline_link_change.png" removed.

Django

unread,
Jan 11, 2025, 9:34:08 PM1/11/25
to django-...@googlegroups.com
#36080: Add a link to navigate to the object through str in the inline form.
-------------------------------+--------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: New feature | Status: closed
Component: contrib.admin | Version: dev
Severity: Normal | Resolution: invalid
Keywords: Inline, Link | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Antoliny):

* Attachment "tabular_inline_link_change.png" added.

Django

unread,
Jan 11, 2025, 9:34:39 PM1/11/25
to django-...@googlegroups.com
#36080: Add a link to navigate to the object through str in the inline form.
-------------------------------+--------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: New feature | Status: closed
Component: contrib.admin | Version: dev
Severity: Normal | Resolution: invalid
Keywords: Inline, Link | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Antoliny):

* Attachment "tabular_inline_link_change.png" removed.

Django

unread,
Jan 11, 2025, 9:35:05 PM1/11/25
to django-...@googlegroups.com
#36080: Add a link to navigate to the object through str in the inline form.
-------------------------------+--------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: New feature | Status: closed
Component: contrib.admin | Version: dev
Severity: Normal | Resolution: invalid
Keywords: Inline, Link | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Antoliny):

* Attachment "inline_link_change.png" added.

Django

unread,
Jan 11, 2025, 9:39:04 PM1/11/25
to django-...@googlegroups.com
#36080: Add a link to navigate to the object through str in the inline form.
-------------------------------+--------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: New feature | Status: closed
Component: contrib.admin | Version: dev
Severity: Normal | Resolution: invalid
Keywords: Inline, Link | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Antoliny):

* Attachment "inline_link_change.png" removed.

Django

unread,
Jan 11, 2025, 9:39:10 PM1/11/25
to django-...@googlegroups.com
#36080: Add a link to navigate to the object through str in the inline form.
-------------------------------+--------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: New feature | Status: closed
Component: contrib.admin | Version: dev
Severity: Normal | Resolution: invalid
Keywords: Inline, Link | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Antoliny):

* Attachment "link_change.png" added.

Django

unread,
Jan 11, 2025, 9:40:09 PM1/11/25
to django-...@googlegroups.com
#36080: Add a link to navigate to the object through str in the inline form.
-------------------------------+--------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: New feature | Status: closed
Component: contrib.admin | Version: dev
Severity: Normal | Resolution: invalid
Keywords: Inline, Link | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Antoliny):

* Attachment "link_change_2.png" added.

Django

unread,
Jan 11, 2025, 9:40:36 PM1/11/25
to django-...@googlegroups.com
#36080: Add a link to navigate to the object through str in the inline form.
-------------------------------+--------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: New feature | Status: closed
Component: contrib.admin | Version: dev
Severity: Normal | Resolution: invalid
Keywords: Inline, Link | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Antoliny):

* Attachment "link_change.png" removed.

Django

unread,
Jan 11, 2025, 9:40:47 PM1/11/25
to django-...@googlegroups.com
#36080: Add a link to navigate to the object through str in the inline form.
-------------------------------+--------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: New feature | Status: closed
Component: contrib.admin | Version: dev
Severity: Normal | Resolution: invalid
Keywords: Inline, Link | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Comment (by Antoliny):

Ah, this functionality is already provided through the show_change_link
attribute! However, when show_change_link is applied, the icon image
appears slightly cropped in TabularInline. Also, the Change and View text
is applied depending on the user's permissions, but the permission-related
details are already exposed in the form.
[[Image(tabular_inline_link.png)]]
Therefore, what do you think about simply adding the link to the object's
__str__ and change the default value of the show_change_link to True?
(This includes StackedInline as well.) I think this approach would be
cleaner, more intuitive, and would enhance accessibility without losing
any clarity.
[[Image(link_change_2.png)]]
--
Ticket URL: <https://code.djangoproject.com/ticket/36080#comment:4>
Reply all
Reply to author
Forward
0 new messages