diff --git a/django/contrib/admin/templates/admin/includes/fieldset.html b/django/contrib/admin/templates/admin/includes/fieldset.html
index a9d3f92702..8c1830da62 100644
--- a/django/contrib/admin/templates/admin/includes/fieldset.html
+++ b/django/contrib/admin/templates/admin/includes/fieldset.html
@@ -27,7 +27,7 @@
{% endif %}
{% if field.field.help_text %}
-
+
{{ field.field.help_text|safe }}
{% endif %}
diff --git a/tests/admin_inlines/models.py b/tests/admin_inlines/models.py
index 64aaca8d14..86a859727a 100644
--- a/tests/admin_inlines/models.py
+++ b/tests/admin_inlines/models.py
@@ -332,7 +332,7 @@ class SomeParentModel(models.Model):
class SomeChildModel(models.Model):
name = models.CharField(max_length=1)
- position = models.PositiveIntegerField()
+ position = models.PositiveIntegerField(help_text="Position help_text.")
parent = models.ForeignKey(SomeParentModel, models.CASCADE)
readonly_field = models.CharField(max_length=1)
diff --git a/tests/admin_inlines/tests.py b/tests/admin_inlines/tests.py
index cba8db83d7..8e69edb841 100644
--- a/tests/admin_inlines/tests.py
+++ b/tests/admin_inlines/tests.py
@@ -349,7 +349,12 @@ class TestInline(TestDataMixin, TestCase):
)
response = self.client.get(url)
self.assertInHTML(
- '
Position | ',
+ '
Position'
+ ''
+ " | ",
response.rendered_content,
)
self.assertInHTML(
@@ -379,13 +384,15 @@ class TestInline(TestDataMixin, TestCase):
self.assertInHTML(
'
',
+ '
0
'
+ '