1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #36032 -- Rendered URLField values as links in the admin.

This commit is contained in:
antoliny0919
2024-12-25 11:35:27 +09:00
committed by Sarah Boyce
parent 5851605863
commit 97ee8b82c2
6 changed files with 26 additions and 3 deletions

View File

@@ -158,8 +158,8 @@ site.register(Parent, NoListDisplayLinksParentAdmin)
class ListDisplayLinksGenreAdmin(admin.ModelAdmin):
list_display = ["name", "file"]
list_display_links = ["file"]
list_display = ["name", "file", "url"]
list_display_links = ["file", "url"]
site.register(Genre, ListDisplayLinksGenreAdmin)