Repository navigation
Build admin read-only field links from DOM nodes - #5627
Merged
Merged
Conversation
obenland
requested review from
dhruvkb and
krysal
and removed request for
a team
October 13, 2026 13:38
5 of 8 tasks
The link helper on the media change form rebuilt each read-only field from an HTML string. It now splits the field text and appends text and anchor nodes instead, which keeps the text exactly as rendered. Two format_html calls that pre-interpolated their arguments now pass them as placeholders, which Django 6 will require. Co-Authored-By: Claude Mythos 5.1 <noreply@anthropic.com>
obenland
force-pushed
the
admin-readonly-links
branch
from
October 13, 2026 14:15
9be4899 to
ae77789
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The link helper on the media change form turned bare URLs in read-only fields into links by rebuilding each field from an HTML string. It now splits the field text on the URL pattern and appends text and anchor nodes, so the field text stays exactly as rendered.
Two
format_htmlcalls that pre-interpolated their arguments now pass them as placeholders. Django deprecates the argument-less form in 5.x and removes it in 6.0.Testing Instructions
ov just api/test -k "templates or admin".Checklist
Update index.md).main) or a parent feature branch.ov just catalog/generate-docsfor catalogPRs) or the media properties generator (
ov just catalog/generate-docs media-propsfor the catalog or
ov just api/generate-docsfor the API) where applicable.Developer Certificate of Origin
Developer Certificate of Origin
🤖 Generated with Claude Code