From 4725a732e7b102636598e31fea4f683069a73086 Mon Sep 17 00:00:00 2001 From: Ramiro Morales Date: Mon, 10 Oct 2011 22:19:59 +0000 Subject: [PATCH] Fixed #9460 -- Added template blocks for submit buttons rows in admin app model add/change views. This allows for easier customization. Thanks kosmik for report and patch. Refs #13875. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16956 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/admin/templates/admin/change_form.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/contrib/admin/templates/admin/change_form.html b/django/contrib/admin/templates/admin/change_form.html index 77d692c63b..14bc76d6be 100644 --- a/django/contrib/admin/templates/admin/change_form.html +++ b/django/contrib/admin/templates/admin/change_form.html @@ -40,7 +40,7 @@
{% csrf_token %}{% block form_top %}{% endblock %}
{% if is_popup %}{% endif %} -{% if save_on_top %}{% submit_row %}{% endif %} +{% if save_on_top %}{% block submit_buttons_top %}{% submit_row %}{% endblock %}{% endif %} {% if errors %}

{% blocktrans count errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %} @@ -64,7 +64,7 @@ {% block after_related_objects %}{% endblock %} -{% submit_row %} +{% block submit_buttons_bottom %}{% submit_row %}{% endblock %} {% if adminform and add %}