Code

Ticket #12694: 12694.diff

File 12694.diff, 1.0 KB (added by DrMeers, 4 years ago)
Line 
1diff --git a/django/contrib/admin/templates/admin/change_form.html b/django/contrib/admin/templates/admin/change_form.html
2index 7c96628..c2fe812 100644
3--- a/django/contrib/admin/templates/admin/change_form.html
4+++ b/django/contrib/admin/templates/admin/change_form.html
5@@ -25,8 +25,11 @@
6 {% block content %}<div id="content-main">
7 {% block object-tools %}
8 {% if change %}{% if not is_popup %}
9-  <ul class="object-tools"><li><a href="history/" class="historylink">{% trans "History" %}</a></li>
10-  {% if has_absolute_url %}<li><a href="../../../r/{{ content_type_id }}/{{ object_id }}/" class="viewsitelink">{% trans "View on site" %}</a></li>{% endif%}
11+  <ul class="object-tools">
12+    {% block object-tools-items %}
13+    <li><a href="history/" class="historylink">{% trans "History" %}</a></li>
14+    {% if has_absolute_url %}<li><a href="../../../r/{{ content_type_id }}/{{ object_id }}/" class="viewsitelink">{% trans "View on site" %}</a></li>{% endif%}
15+    {% endblock %}
16   </ul>
17 {% endif %}{% endif %}
18 {% endblock %}