diff --git a/django/contrib/admin/static/admin/css/forms.css b/django/contrib/admin/static/admin/css/forms.css index 315f4b753c4..3cd87ef4769 100644 --- a/django/contrib/admin/static/admin/css/forms.css +++ b/django/contrib/admin/static/admin/css/forms.css @@ -202,6 +202,7 @@ fieldset .fieldBox { } form .wide p, +form .wide ul.errorlist, form .wide input + p.help, form .wide input + div.help { margin-left: 200px; @@ -209,7 +210,7 @@ form .wide input + div.help { form .wide p.help, form .wide div.help { - padding-left: 38px; + padding-left: 50px; } form div.help ul { diff --git a/django/contrib/admin/templates/admin/auth/user/change_password.html b/django/contrib/admin/templates/admin/auth/user/change_password.html index 29fc7e47091..f9681ba2d2e 100644 --- a/django/contrib/admin/templates/admin/auth/user/change_password.html +++ b/django/contrib/admin/templates/admin/auth/user/change_password.html @@ -32,7 +32,7 @@
{{ form.password1.errors }} - {{ form.password1.label_tag }} {{ form.password1 }} +
{{ form.password1.label_tag }} {{ form.password1 }}
{% if form.password1.help_text %}
{% endif %}{{ form.password1.help_text|safe }}
{% endif %} @@ -40,7 +40,7 @@
{{ form.password2.errors }} - {{ form.password2.label_tag }} {{ form.password2 }} +
{{ form.password2.label_tag }} {{ form.password2 }}
{% if form.password2.help_text %}
{{ form.password2.help_text|safe }}
{% endif %} diff --git a/django/contrib/admin/templates/admin/includes/fieldset.html b/django/contrib/admin/templates/admin/includes/fieldset.html index 7b6e903ec31..5953a5ad3d0 100644 --- a/django/contrib/admin/templates/admin/includes/fieldset.html +++ b/django/contrib/admin/templates/admin/includes/fieldset.html @@ -22,7 +22,7 @@
{% if field.field.help_text %}
- {{ field.field.help_text|safe }} +
{{ field.field.help_text|safe }}
{% endif %} {% endfor %} diff --git a/django/contrib/admin/templates/registration/password_change_form.html b/django/contrib/admin/templates/registration/password_change_form.html index 3f5acdc1861..73bafbb4aca 100644 --- a/django/contrib/admin/templates/registration/password_change_form.html +++ b/django/contrib/admin/templates/registration/password_change_form.html @@ -33,20 +33,20 @@
{{ form.old_password.errors }} - {{ form.old_password.label_tag }} {{ form.old_password }} +
{{ form.old_password.label_tag }} {{ form.old_password }}
{{ form.new_password1.errors }} - {{ form.new_password1.label_tag }} {{ form.new_password1 }} +
{{ form.new_password1.label_tag }} {{ form.new_password1 }}
{% if form.new_password1.help_text %}
{{ form.new_password1.help_text|safe }}
{% endif %}
-{{ form.new_password2.errors }} - {{ form.new_password2.label_tag }} {{ form.new_password2 }} + {{ form.new_password2.errors }} +
{{ form.new_password2.label_tag }} {{ form.new_password2 }}
{% if form.new_password2.help_text %}
{{ form.new_password2.help_text|safe }}
{% endif %} diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index 6d17279d6fb..5f7aafe4301 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -6549,20 +6549,20 @@ class ReadonlyTest(AdminFieldExtractionMixin, TestCase): self.assertContains(response, '
Some help text for the title ' - "(with Unicode ŠĐĆŽćžšđ)
", + '
Some help text for the ' + "title (with Unicode ŠĐĆŽćžšđ)
", html=True, ) self.assertContains( response, - '
Some help text for the content ' - "(with Unicode ŠĐĆŽćžšđ)
", + '
Some help text for the ' + "content (with Unicode ŠĐĆŽćžšđ)
", html=True, ) self.assertContains( response, - '
Some help text for the date (with Unicode ŠĐĆŽćžšđ)' - "
", + '
Some help text for the date (with Unicode ŠĐĆŽćžšđ)' + "
", html=True, ) @@ -6744,7 +6744,7 @@ class ReadonlyTest(AdminFieldExtractionMixin, TestCase): ) self.assertContains( response, - '
Overridden help text for the date
', + '
Overridden help text for the date
', html=True, ) self.assertContains(