Opened 6 years ago

Closed 6 years ago

#29873 closed New feature (needsinfo)

Link to access related field on the admin tool

Reported by: Pablo Fernandez Owned by: nobody
Component: contrib.admin Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When there's a foreign key in the admin tool, we get the select for choosing which record to save as the foreign key as well as two little icons: one for editing it, and one for adding a new one.

I think it would be nice to get a third one that opens the record in the admin tool. This would help navigate through records when there's a complex tree-like structure. I think the icon should be something like this: https://fontawesome.com/icons/link?style=solid

I'd like to attempt to code this myself, so, please, let me know if this patch would be welcome and I'll give a try.

Change History (1)

comment:1 by Carlton Gibson, 6 years ago

Resolution: needsinfo
Status: newclosed

Hi.

I'm going to close this as needs info as is.

The change link already is a "View" link. The admin's Change Form just is its View page. Since 2.1, if you have only view permissions the link presented is already differently. (See https://github.com/django/django/blob/c53af5661313079d022553b6c775e6c4f8d34927/django/contrib/admin/templates/admin/related_widget_wrapper.html#L6-L18)

The only thing I can see here is that the link is currently opened in a popup. You can get around this via your browser's ability to open the link in a new tab (say), although you need to remove the &_popup=1 to get the full admin shown. I don't know that a change would be merited here. (Or exactly what that feature would amount to...)

If you want to develop this further could I suggest thinking through the exact behaviour you'd want and a post to the django-developers mailing list to see if there would be support for your proposed change.

Thanks.

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