From 18ef901e5f8e3e20256defd1cb42a2310ee9b64b Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Mon, 28 Mar 2011 01:22:05 +0000 Subject: [PATCH] Fixed #6636 -- Added template blocks to admin change_form.html template for fieldsets and inline fieldsets. Thanks, peschler and jpichon git-svn-id: http://code.djangoproject.com/svn/django/trunk@15925 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/admin/templates/admin/change_form.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/django/contrib/admin/templates/admin/change_form.html b/django/contrib/admin/templates/admin/change_form.html index fb278b42be..b32f76d2c2 100644 --- a/django/contrib/admin/templates/admin/change_form.html +++ b/django/contrib/admin/templates/admin/change_form.html @@ -45,15 +45,19 @@ {{ adminform.form.non_field_errors }} {% endif %} +{% block field_sets %} {% for fieldset in adminform %} {% include "admin/includes/fieldset.html" %} {% endfor %} +{% endblock %} {% block after_field_sets %}{% endblock %} +{% block inline_field_sets %} {% for inline_admin_formset in inline_admin_formsets %} {% include inline_admin_formset.opts.template %} {% endfor %} +{% endblock %} {% block after_related_objects %}{% endblock %}