Ticket #13539: delete_object_permissions.diff
File delete_object_permissions.diff, 555 bytes (added by , 15 years ago) |
---|
-
django/contrib/admin/util.py
74 74 if has_admin: 75 75 p = '%s.%s' % (opts.app_label, 76 76 opts.get_delete_permission()) 77 if not user.has_perm(p ):77 if not user.has_perm(p, obj): 78 78 perms_needed.add(opts.verbose_name) 79 79 # Display a link to the admin page. 80 80 return mark_safe(u'%s: <a href="%s">%s</a>' %