mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #22241 -- Selectively added line breaks in admin read-only fields
When content is supposed to contain HTML, we do not try to add line breaks in read-only contents. Thanks Alexander Todorov for the report.
This commit is contained in:
@@ -3622,6 +3622,7 @@ class ReadonlyTest(TestCase):
|
||||
|
||||
# Checks that multiline text in a readonly field gets <br /> tags
|
||||
self.assertContains(response, "Multiline<br />test<br />string")
|
||||
self.assertContains(response, "<p>Multiline<br />html<br />content</p>", html=True)
|
||||
self.assertContains(response, "InlineMultiline<br />test<br />string")
|
||||
|
||||
self.assertContains(response,
|
||||
|
||||
Reference in New Issue
Block a user