It would be nicer to render those as links instead so that a readonly user
can navigate through the relationships.
The link should only be rendered if the user has permission to view the
target model.
django-developers discussion: https://groups.google.com/forum/#!topic
/django-developers/XFoaohDpqZE
--
Ticket URL: <https://code.djangoproject.com/ticket/31181>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by julienr):
I have a WIP patch on github: https://github.com/julienr/django/tree
/admin-readonly-remote-fields-links
--
Ticket URL: <https://code.djangoproject.com/ticket/31181#comment:1>
* version: 3.0 => master
* stage: Unreviewed => Accepted
Comment:
Hi Julian. Thanks for this. I agree, it does sound like a nice
enhancement.
Please open a PR from your branch. Commit message/title `Fixed #31181 --
Added links...`.
If you could post a small screenshot of two, showing the improvement, that
makes it easier at first glance too.
--
Ticket URL: <https://code.djangoproject.com/ticket/31181#comment:2>
Comment (by Julien Rebetez):
Thanks! Here is the PR : https://github.com/django/django/pull/12343
I've added screenshots directly in the PR. There are also some open
questions / points to discuss in the description of the PR.
--
Ticket URL: <https://code.djangoproject.com/ticket/31181#comment:3>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/31181#comment:4>
* needs_better_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/12343 PR]
We should skip m2m fields in this change.
--
Ticket URL: <https://code.djangoproject.com/ticket/31181#comment:5>
Comment (by Julien Rebetez):
I've amended the github PR to not include m2m
--
Ticket URL: <https://code.djangoproject.com/ticket/31181#comment:6>
* cc: Jeongsoo, Park (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/31181#comment:7>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/31181#comment:8>
* needs_better_patch: 1 => 0
* needs_docs: 1 => 0
Comment:
I've updated the [https://github.com/django/django/pull/12343 PR] to
address the reviewer's comments. I've also added a small release note
line.
--
Ticket URL: <https://code.djangoproject.com/ticket/31181#comment:10>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"b79088306513d5ed76d31ac40ab3c15f858946ea" b7908830]:
{{{
#!CommitTicketReference repository=""
revision="b79088306513d5ed76d31ac40ab3c15f858946ea"
Fixed #31181 -- Added links to related models for admin's readonly fields.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31181#comment:11>