diff options
| author | Brian Rosner <brosner@gmail.com> | 2008-03-17 19:01:36 +0000 |
|---|---|---|
| committer | Brian Rosner <brosner@gmail.com> | 2008-03-17 19:01:36 +0000 |
| commit | e9982047655485d3d38691e5074deff7d3a4d659 (patch) | |
| tree | 77f43bcd06fc50060a225129bbca5677b7dae0cd | |
| parent | 93c45b570427b0a0f875a6f551d229f20e2ac5ee (diff) | |
newforms-admin: Fixed the display of delete fields on inlines in the admin.
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7272 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/contrib/admin/templates/admin/edit_inline/stacked.html | 2 | ||||
| -rw-r--r-- | django/contrib/admin/templates/admin/edit_inline/tabular.html | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/django/contrib/admin/templates/admin/edit_inline/stacked.html b/django/contrib/admin/templates/admin/edit_inline/stacked.html index 3cd0a436d1..4e1944c828 100644 --- a/django/contrib/admin/templates/admin/edit_inline/stacked.html +++ b/django/contrib/admin/templates/admin/edit_inline/stacked.html @@ -6,7 +6,7 @@ {% for inline_admin_form in inline_admin_formset %} <div class="inline-related {% if forloop.last %}last-related{% endif %}"> <h2><b>{{ inline_admin_formset.opts.verbose_name|title }}:</b> {% if inline_admin_form.original %}{{ inline_admin_form.original }}{% else %} #{{ forloop.counter }}{% endif %} - {% if inline_admin_formset.formset.deletable %}<span class="delete">{{ inline_admin_form.deletion_field.field }} {{ inline_admin_form.deletion_field.label_tag }}</span>{% endif %} + {% if inline_admin_formset.formset.can_delete %}<span class="delete">{{ inline_admin_form.deletion_field.field }} {{ inline_admin_form.deletion_field.label_tag }}</span>{% endif %} </h2> {% if inline_admin_form.show_url %} <p><a href="/r/{{ inline_admin_form.original.content_type_id }}/{{ inline_admin_form.original.id }}/">View on site</a></p> diff --git a/django/contrib/admin/templates/admin/edit_inline/tabular.html b/django/contrib/admin/templates/admin/edit_inline/tabular.html index 16bb14d002..f8077f15d1 100644 --- a/django/contrib/admin/templates/admin/edit_inline/tabular.html +++ b/django/contrib/admin/templates/admin/edit_inline/tabular.html @@ -11,7 +11,7 @@ <th {% if forloop.first %}colspan="2"{% endif %}>{{ field.label|capfirst|escape }}</th> {% endif %} {% endfor %} - {% if inline_admin_formset.formset.deletable %}<th>{% trans "Delete" %}?</th>{% endif %} + {% if inline_admin_formset.formset.can_delete %}<th>{% trans "Delete" %}?</th>{% endif %} </tr></thead> {% for inline_admin_form in inline_admin_formset %} @@ -45,7 +45,7 @@ {% endfor %} {% endfor %} - {% if inline_admin_formset.formset.deletable %}<td class="delete">{{ inline_admin_form.deletion_field.field }}</td>{% endif %} + {% if inline_admin_formset.formset.can_delete %}<td class="delete">{{ inline_admin_form.deletion_field.field }}</td>{% endif %} </tr> |
