Ticket #13539: delete_object_permissions.diff

File delete_object_permissions.diff, 555 bytes (added by Ion Scerbatiuc, 9 years ago)
  • django/contrib/admin/util.py

     
    7474    if has_admin:
    7575        p = '%s.%s' % (opts.app_label,
    7676                       opts.get_delete_permission())
    77         if not user.has_perm(p):
     77        if not user.has_perm(p, obj):
    7878            perms_needed.add(opts.verbose_name)
    7979        # Display a link to the admin page.
    8080        return mark_safe(u'%s: <a href="%s">%s</a>' %
Back to Top