[Django] #36032: Apply a link to the URLField value on the admin app index page.

32 views
Skip to first unread message

Django

unread,
Dec 21, 2024, 7:19:00 AM12/21/24
to django-...@googlegroups.com
#36032: Apply a link to the URLField value on the admin app index page.
-------------------------------------+-------------------------------------
Reporter: Antoliny | Type: New
| feature
Status: new | Component:
| contrib.admin
Version: 5.1 | Severity: Normal
Keywords: URLField, | Triage Stage:
list_display | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
When adding a URLField through ModelAdmin `list_display` in the app index
page's , the value is displayed as plain text instead of a link, which was
not expected.
[[Image()]]
It would be better if the URLField value is displayed as a link when shown
through `list_display` in the ModelAdmin.
--
Ticket URL: <https://code.djangoproject.com/ticket/36032>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Dec 21, 2024, 7:19:08 AM12/21/24
to django-...@googlegroups.com
#36032: Apply a link to the URLField value on the admin app index page.
-------------------------------------+-------------------------------------
Reporter: Antoliny | Owner: (none)
Type: New feature | Status: new
Component: contrib.admin | Version: 5.1
Severity: Normal | Resolution:
Keywords: URLField, | Triage Stage:
list_display | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Antoliny):

* Attachment "Screenshot 2024-12-21 at 9.14.53 PM.png" added.

Django

unread,
Dec 21, 2024, 7:19:45 AM12/21/24
to django-...@googlegroups.com
#36032: Apply a link to the URLField value on the admin app index page.
-------------------------------------+-------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: New feature | Status: assigned
Component: contrib.admin | Version: 5.1
Severity: Normal | Resolution:
Keywords: URLField, | Triage Stage:
list_display | 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/36032#comment:1>

Django

unread,
Dec 21, 2024, 7:20:03 AM12/21/24
to django-...@googlegroups.com
#36032: Apply a link to the URLField value on the admin app index page.
-------------------------------------+-------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: New feature | Status: assigned
Component: contrib.admin | Version: 5.1
Severity: Normal | Resolution:
Keywords: URLField, | Triage Stage:
list_display | 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:

> When adding a URLField through ModelAdmin `list_display` in the app index
> page's , the value is displayed as plain text instead of a link, which
> was not expected.
> [[Image()]]
> It would be better if the URLField value is displayed as a link when
> shown through `list_display` in the ModelAdmin.

New description:

When adding a URLField through ModelAdmin `list_display` in the app index
page's , the value is displayed as plain text instead of a link, which was
not expected.
[[Image(Screenshot 2024-12-21 at 9.14.53 PM.png)]]
It would be better if the URLField value is displayed as a link when shown
through `list_display` in the ModelAdmin.

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

Django

unread,
Dec 21, 2024, 7:22:26 AM12/21/24
to django-...@googlegroups.com
#36032: Apply a link to the URLField value on the admin app index page.
-------------------------------------+-------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: New feature | Status: assigned
Component: contrib.admin | Version: 5.1
Severity: Normal | Resolution:
Keywords: URLField, | Triage Stage:
list_display | 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:

> When adding a URLField through ModelAdmin `list_display` in the app index
> page's , the value is displayed as plain text instead of a link, which
> was not expected.
> [[Image(Screenshot 2024-12-21 at 9.14.53 PM.png)]]
> It would be better if the URLField value is displayed as a link when
> shown through `list_display` in the ModelAdmin.

New description:

When adding a URLField through ModelAdmin `list_display` in the app index
page's , the value is displayed as plain text instead of a link, which was
not expected.
[[Image(Screenshot 2024-12-21 at 9.14.53 PM.png)]]
It would be better if the URLField value is displayed as a link when shown
through `list_display` in the ModelAdmin.
[[Image(Screenshot 2024-12-21 at 9.21.12 PM.png)]]
On the change page, the URLField value is displayed as a link.

--
--
Ticket URL: <https://code.djangoproject.com/ticket/36032#comment:3>

Django

unread,
Dec 21, 2024, 7:22:35 AM12/21/24
to django-...@googlegroups.com
#36032: Apply a link to the URLField value on the admin app index page.
-------------------------------------+-------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: New feature | Status: assigned
Component: contrib.admin | Version: 5.1
Severity: Normal | Resolution:
Keywords: URLField, | Triage Stage:
list_display | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Antoliny):

* Attachment "Screenshot 2024-12-21 at 9.21.12 PM.png" added.

Django

unread,
Dec 25, 2024, 5:00:19 AM12/25/24
to django-...@googlegroups.com
#36032: Apply a link to the URLField value on the admin app index page.
-------------------------------------+-------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: New feature | Status: assigned
Component: contrib.admin | Version: 5.1
Severity: Normal | Resolution:
Keywords: URLField, | Triage Stage:
list_display | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Antoliny):

[https://github.com/django/django/pull/18972 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/36032#comment:4>

Django

unread,
Dec 25, 2024, 11:02:15 AM12/25/24
to django-...@googlegroups.com
#36032: Apply a link to the URLField value on the admin app index page.
-------------------------------------+-------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: New feature | Status: assigned
Component: contrib.admin | Version: 5.1
Severity: Normal | Resolution:
Keywords: URLField, | Triage Stage:
list_display | Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Jacob Walls):

* has_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/36032#comment:5>

Django

unread,
Dec 26, 2024, 10:54:50 AM12/26/24
to django-...@googlegroups.com
#36032: Apply a link to the URLField value on the admin app index page.
-------------------------------------+-------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: New feature | Status: assigned
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: URLField, | Triage Stage: Accepted
list_display |
Has patch: 1 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Natalia Bidart):

* needs_docs: 0 => 1
* stage: Unreviewed => Accepted
* version: 5.1 => dev

Comment:

Thank you Antoliny for the ticket report. I think your proposal makes
sense, I can't think of a case where this would not be desirable.

Accepting on that basis, could you please add a small note in the 5.2
release notes under `django.contrib.admin'? Once that's done, please unset
the "patch needs documentation" in this ticket to get a full review.

Well done!
--
Ticket URL: <https://code.djangoproject.com/ticket/36032#comment:6>

Django

unread,
Dec 26, 2024, 9:17:33 PM12/26/24
to django-...@googlegroups.com
#36032: Apply a link to the URLField value on the admin app index page.
-------------------------------------+-------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: New feature | Status: assigned
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: URLField, | Triage Stage: Accepted
list_display |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Antoliny):

* needs_docs: 1 => 0

--
Ticket URL: <https://code.djangoproject.com/ticket/36032#comment:7>

Django

unread,
Jan 2, 2025, 9:53:41 AM1/2/25
to django-...@googlegroups.com
#36032: Apply a link to the URLField value on the admin app index page.
-------------------------------------+-------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: New feature | Status: assigned
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: URLField, | Triage Stage: Accepted
list_display |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* needs_better_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/36032#comment:8>

Django

unread,
Jan 8, 2025, 5:23:35 PM1/8/25
to django-...@googlegroups.com
#36032: Apply a link to the URLField value on the admin app index page.
-------------------------------------+-------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: New feature | Status: assigned
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: URLField, | Triage Stage: Accepted
list_display |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Antoliny):

* needs_better_patch: 1 => 0

--
Ticket URL: <https://code.djangoproject.com/ticket/36032#comment:9>

Django

unread,
Jan 10, 2025, 4:05:17 AM1/10/25
to django-...@googlegroups.com
#36032: Apply a link to the URLField value on the admin app index page.
-------------------------------------+-------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: New feature | Status: assigned
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: URLField, | Triage Stage: Ready for
list_display | checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* stage: Accepted => Ready for checkin

--
Ticket URL: <https://code.djangoproject.com/ticket/36032#comment:10>

Django

unread,
Jan 10, 2025, 6:58:02 AM1/10/25
to django-...@googlegroups.com
#36032: Apply a link to the URLField value on the admin app index page.
-------------------------------------+-------------------------------------
Reporter: Antoliny | Owner: Antoliny
Type: New feature | Status: closed
Component: contrib.admin | Version: dev
Severity: Normal | Resolution: fixed
Keywords: URLField, | Triage Stage: Ready for
list_display | checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce <42296566+sarahboyce@…>):

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

Comment:

In [changeset:"97ee8b82c2c99bf352df5359bb24a42ea78585b8" 97ee8b82]:
{{{#!CommitTicketReference repository=""
revision="97ee8b82c2c99bf352df5359bb24a42ea78585b8"
Fixed #36032 -- Rendered URLField values as links in the admin.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/36032#comment:11>
Reply all
Reply to author
Forward
0 new messages