summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Marsh <kevinmarsh3@gmail.com>2014-12-12 13:27:04 +0000
committerTim Graham <timograham@gmail.com>2014-12-12 09:34:18 -0500
commite2868308bfa4ec165fb54b6128ee18a7b4d50643 (patch)
treeee98b7cf10af5b249bd82bd722e47bce1dd5d421
parent119154ca7f65d423bb742aa0e32ffcfcb21d4b87 (diff)
Fixed template tag braces spacing.
-rw-r--r--django/contrib/admin/templates/admin/change_form.html2
-rw-r--r--django/contrib/admin/templates/admin/submit_line.html2
-rw-r--r--django/contrib/flatpages/tests/test_templatetags.py6
-rw-r--r--docs/ref/contrib/admin/index.txt2
-rw-r--r--tests/admin_views/templates/admin/base_site.html2
5 files changed, 7 insertions, 7 deletions
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 %}
<a href="{% add_preserved_filters history_url %}" class="historylink">{% trans "History" %}</a>
</li>
- {% if has_absolute_url %}<li><a href="{{ absolute_url }}" class="viewsitelink">{% trans "View on site" %}</a></li>{% endif%}
+ {% if has_absolute_url %}<li><a href="{{ absolute_url }}" class="viewsitelink">{% trans "View on site" %}</a></li>{% endif %}
{% endblock %}
</ul>
{% 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 %}
<p class="deletelink-box"><a href="{% add_preserved_filters delete_url %}" class="deletelink">{% trans "Delete" %}</a></p>
{% endif %}
-{% if show_save_as_new %}<input type="submit" value="{% trans 'Save as new' %}" name="_saveasnew" />{%endif%}
+{% if show_save_as_new %}<input type="submit" value="{% trans 'Save as new' %}" name="_saveasnew" />{% endif %}
{% if show_save_and_add_another %}<input type="submit" value="{% trans 'Save and add another' %}" name="_addanother" />{% endif %}
{% if show_save_and_continue %}<input type="submit" value="{% trans 'Save and continue editing' %}" name="_continue" />{% endif %}
</div>
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`` :
<li>
<a href="{% url 'admin:view_on_site' content_type_id original.pk %}" class="viewsitelink">{% trans "View on site" %}</a>
</li>
- {% 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 %}