Ticket #15139: admin_delete_view_per_objects_r15256.diff

File admin_delete_view_per_objects_r15256.diff, 638 bytes (added by msaelices, 4 years ago)
  • django/contrib/admin/util.py

     
    8989                                None, (quote(obj._get_pk_val()),))
    9090            p = '%s.%s' % (opts.app_label,
    9191                           opts.get_delete_permission())
    92             if not user.has_perm(p):
     92            if not user.has_perm(p, obj):
    9393                perms_needed.add(opts.verbose_name)
    9494            # Display a link to the admin page.
    9595            return mark_safe(u'%s: <a href="%s">%s</a>' %
Back to Top