Ticket #15139: admin_delete_view_per_objects_r15256.diff
File admin_delete_view_per_objects_r15256.diff, 638 bytes (added by , 14 years ago) |
---|
-
django/contrib/admin/util.py
89 89 None, (quote(obj._get_pk_val()),)) 90 90 p = '%s.%s' % (opts.app_label, 91 91 opts.get_delete_permission()) 92 if not user.has_perm(p ):92 if not user.has_perm(p, obj): 93 93 perms_needed.add(opts.verbose_name) 94 94 # Display a link to the admin page. 95 95 return mark_safe(u'%s: <a href="%s">%s</a>' %