{% else %}
{{ field.field }}
{% endif %}
diff --git a/docs/releases/1.11.txt b/docs/releases/1.11.txt
index d26a6a0a51..ff40daa504 100644
--- a/docs/releases/1.11.txt
+++ b/docs/releases/1.11.txt
@@ -501,6 +501,15 @@ This works similar to ``settings.TIME_ZONE = None`` except that it also sets
if there's a use case where you find you can't adapt your code to set a
``TIME_ZONE``.
+HTML changes in admin templates
+-------------------------------
+
+``
`` is replaced with a ``
`` tag to allow including lists
+inside help text.
+
+Read-only fields are wrapped in ``
...
`` instead of
+``
...
`` to allow any kind of HTML as the field's content.
+
Miscellaneous
-------------
diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py
index 0643448984..ae66e2e508 100644
--- a/tests/admin_views/tests.py
+++ b/tests/admin_views/tests.py
@@ -4598,11 +4598,15 @@ class ReadonlyTest(AdminFieldExtractionMixin, TestCase):
self.assertContains(response, "foo")
# Multiline text in a readonly field gets tags
- self.assertContains(response, "Multiline test string")
- self.assertContains(response, "
Multiline html content
", html=True)
- self.assertContains(response, "InlineMultiline test string")
+ self.assertContains(response, 'Multiline test string')
+ self.assertContains(response, '
Multiline html content
', html=True)
+ self.assertContains(response, 'InlineMultiline test string')
# Remove only this last line when the deprecation completes.
- self.assertContains(response, "