Ticket #1678: django_1678.diff
File django_1678.diff, 1.4 KB (added by , 19 years ago) |
---|
-
django/contrib/admin/views/main.py
468 468 # Don't display link to edit, because it either has no 469 469 # admin or is edited inline. 470 470 nh(deleted_objects, current_depth, [_('One or more %(fieldname)s in %(name)s: %(obj)s') % \ 471 {'fieldname': related.field. name, 'name': related.opts.verbose_name, 'obj': escape(str(sub_obj))}, []])471 {'fieldname': related.field.verbose_name, 'name': related.opts.verbose_name, 'obj': escape(str(sub_obj))}, []]) 472 472 else: 473 473 # Display a link to the admin page. 474 474 nh(deleted_objects, current_depth, [ 475 (_('One or more %(fieldname)s in %(name)s:') % {'fieldname': related.field. name, 'name':related.opts.verbose_name}) + \475 (_('One or more %(fieldname)s in %(name)s:') % {'fieldname': related.field.verbose_name, 'name':related.opts.verbose_name}) + \ 476 476 (' <a href="../../../../%s/%s/%s/">%s</a>' % \ 477 477 (related.opts.app_label, related.opts.module_name, sub_obj._get_pk_val(), escape(str(sub_obj)))), []]) 478 478 # If there were related objects, and the user doesn't have