Ticket #13163: inline_edit_link-2.diff
File inline_edit_link-2.diff, 2.0 KB (added by , 12 years ago) |
---|
-
django/contrib/admin/options.py
1303 1303 verbose_name = None 1304 1304 verbose_name_plural = None 1305 1305 can_delete = True 1306 show_edit_link = False 1306 1307 1307 1308 def __init__(self, parent_model, admin_site): 1308 1309 self.admin_site = admin_site -
django/contrib/admin/templates/admin/edit_inline/tabular.html
1 1 {% load i18n adminmedia admin_modify %} 2 {% load url from future %} 2 3 <div class="inline-group" id="{{ inline_admin_formset.formset.prefix }}-group"> 3 4 <div class="tabular inline-related {% if forloop.last %}last-related{% endif %}"> 4 5 {{ inline_admin_formset.formset.management_form }} … … 24 25 id="{{ inline_admin_formset.formset.prefix }}-{% if not forloop.last %}{{ forloop.counter0 }}{% else %}empty{% endif %}"> 25 26 <td class="original"> 26 27 {% if inline_admin_form.original or inline_admin_form.show_url %}<p> 27 {% if inline_admin_form.original %} {{ inline_admin_form.original }}{% endif %}28 {% if inline_admin_form.original %} {{ inline_admin_form.original }}{% if inline_admin_form.original %} <a href="{% url adminform.model_admin.admin_site.app_name|add:':'|add:inline_admin_formset.opts.opts.app_label|add:'_'|add:inline_admin_formset.opts.opts.module_name|add:'_changelist' %}{{ inline_admin_form.original.pk }}">Edit</a>{% endif %}{% endif %} 28 29 {% if inline_admin_form.show_url %}<a href="../../../r/{{ inline_admin_form.original_content_type_id }}/{{ inline_admin_form.original.id }}/">{% trans "View on site" %}</a>{% endif %} 29 30 </p>{% endif %} 30 31 {% if inline_admin_form.has_auto_field %}{{ inline_admin_form.pk_field.field }}{% endif %}