Opened 15 years ago
Closed 15 years ago
#13576 closed (duplicate)
Found a bug of checking permission rules in django.contrib.admin.actions.delete_selected
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | contrib.admin | Version: | 1.2 |
Severity: | Keywords: | permissions actions | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
In case of custom ModelAdmin.has_delete_permission method implementation we can use "obj=None" argument to make decision. But django.contrib.admin.actions.delete_selected method by some reason does not check permission rules for each of its queryset object.
Simple patch is added to this ticket.
Attachments (1)
Change History (2)
by , 15 years ago
Attachment: | django_contrib_admin_actions-fix-perms-check-bug.diff added |
---|
comment:1 by , 15 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Looks like a duplicate of #13539; the fix proposed there looks like a better approach to me.