#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>