diff --git a/django/contrib/admin/templates/admin/change_form.html b/django/contrib/admin/templates/admin/change_form.html index fc1e810541..5e6c0c6321 100644 --- a/django/contrib/admin/templates/admin/change_form.html +++ b/django/contrib/admin/templates/admin/change_form.html @@ -32,7 +32,7 @@ {% url opts|admin_urlname:'history' original.pk|admin_urlquote as history_url %} {% trans "History" %} - {% if has_absolute_url %}
  • {% trans "View on site" %}
  • {% endif%} + {% if has_absolute_url %}
  • {% trans "View on site" %}
  • {% endif %} {% endblock %} {% endif %}{% endif %} diff --git a/django/contrib/admin/templates/admin/submit_line.html b/django/contrib/admin/templates/admin/submit_line.html index 52baed3ffa..d6db711953 100644 --- a/django/contrib/admin/templates/admin/submit_line.html +++ b/django/contrib/admin/templates/admin/submit_line.html @@ -5,7 +5,7 @@ {% url opts|admin_urlname:'delete' original.pk|admin_urlquote as delete_url %} {% endif %} -{% if show_save_as_new %}{%endif%} +{% if show_save_as_new %}{% endif %} {% if show_save_and_add_another %}{% endif %} {% if show_save_and_continue %}{% endif %} diff --git a/django/contrib/flatpages/tests/test_templatetags.py b/django/contrib/flatpages/tests/test_templatetags.py index 6008d525fa..7b9c4cf468 100644 --- a/django/contrib/flatpages/tests/test_templatetags.py +++ b/django/contrib/flatpages/tests/test_templatetags.py @@ -125,10 +125,10 @@ class FlatpageTemplateTagTests(TestCase): self.assertRaises(TemplateSyntaxError, render, "{% load flatpages %}{% get_flatpages cheesecake flatpages %}") self.assertRaises(TemplateSyntaxError, render, - "{% load flatpages %}{% get_flatpages as flatpages asdf%}") + "{% load flatpages %}{% get_flatpages as flatpages asdf %}") self.assertRaises(TemplateSyntaxError, render, "{% load flatpages %}{% get_flatpages cheesecake user as flatpages %}") self.assertRaises(TemplateSyntaxError, render, - "{% load flatpages %}{% get_flatpages for user as flatpages asdf%}") + "{% load flatpages %}{% get_flatpages for user as flatpages asdf %}") self.assertRaises(TemplateSyntaxError, render, - "{% load flatpages %}{% get_flatpages prefix for user as flatpages asdf%}") + "{% load flatpages %}{% get_flatpages prefix for user as flatpages asdf %}") diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index fd6d8f5f3a..6d631b77b0 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -2391,7 +2391,7 @@ Therefore here is our new ``change_form.html`` :
  • {% trans "View on site" %}
  • - {% endif%} + {% endif %} {% endblock %} And that's it! If we placed this file in the ``templates/admin/my_app`` diff --git a/tests/admin_views/templates/admin/base_site.html b/tests/admin_views/templates/admin/base_site.html index 0502239997..9714571289 100644 --- a/tests/admin_views/templates/admin/base_site.html +++ b/tests/admin_views/templates/admin/base_site.html @@ -1,3 +1,3 @@ {% extends "admin/base.html" %} -{% block bodyclass%}bodyclass_consistency_check{% endblock %} +{% block bodyclass %}bodyclass_consistency_check{% endblock %}