Code

Ticket #9276: stacked_html.diff

File stacked_html.diff, 982 bytes (added by creecode, 5 years ago)
Line 
1Index: django/contrib/admin/templates/admin/edit_inline/stacked.html
2===================================================================
3--- django/contrib/admin/templates/admin/edit_inline/stacked.html       (revision 9820)
4+++ django/contrib/admin/templates/admin/edit_inline/stacked.html       (working copy)
5@@ -5,7 +5,7 @@
6 {{ inline_admin_formset.formset.non_form_errors }}
7 
8 {% for inline_admin_form in inline_admin_formset %}
9-<div class="inline-related {% if forloop.last %}last-related{% endif %}">
10+<div class="inline-related{% if forloop.last %} last-related{% endif %}">
11   <h3><b>{{ inline_admin_formset.opts.verbose_name|title }}:</b>&nbsp;{% if inline_admin_form.original %}{{ inline_admin_form.original }}{% else %} #{{ forloop.counter }}{% endif %}
12     {% if inline_admin_formset.formset.can_delete and inline_admin_form.original %}<span class="delete">{{ inline_admin_form.deletion_field.field }} {{ inline_admin_form.deletion_field.label_tag }}</span>{% endif %}
13   </h3>