Skip to content

Commit

Permalink
Fixed #6636 -- Added template blocks to admin change_form.html templa…
Browse files Browse the repository at this point in the history
…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
adrianholovaty committed Mar 28, 2011
1 parent d665c0b commit 18ef901
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions django/contrib/admin/templates/admin/change_form.html
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -45,15 +45,19 @@
{{ adminform.form.non_field_errors }} {{ adminform.form.non_field_errors }}
{% endif %} {% endif %}


{% block field_sets %}
{% for fieldset in adminform %} {% for fieldset in adminform %}
{% include "admin/includes/fieldset.html" %} {% include "admin/includes/fieldset.html" %}
{% endfor %} {% endfor %}
{% endblock %}


{% block after_field_sets %}{% endblock %} {% block after_field_sets %}{% endblock %}


{% block inline_field_sets %}
{% for inline_admin_formset in inline_admin_formsets %} {% for inline_admin_formset in inline_admin_formsets %}
{% include inline_admin_formset.opts.template %} {% include inline_admin_formset.opts.template %}
{% endfor %} {% endfor %}
{% endblock %}


{% block after_related_objects %}{% endblock %} {% block after_related_objects %}{% endblock %}


Expand Down

0 comments on commit 18ef901

Please sign in to comment.