Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #6636 -- Added template blocks to admin change_form.html templa…

…te 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
  • Loading branch information...
commit 18ef901e5f8e3e20256defd1cb42a2310ee9b64b 1 parent d665c0b
@adrianholovaty adrianholovaty authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 django/contrib/admin/templates/admin/change_form.html
View
4 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 %}
Please sign in to comment.
Something went wrong with that request. Please try again.