Opened 8 years ago

Closed 8 years ago

#27326 closed New feature (duplicate)

Overriding queryset deletion from ModelAdmin

Reported by: Dimitris Glynos Owned by: nobody
Component: contrib.admin Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no
Pull Requests:How to create a pull request

Description

Hello all,

in a project I've found it useful to have ModelAdmin export a delete_queryset(self, request, queryset)
method so that one may override this to perform extra actions required during the queryset deletion
process.

The attached patch implements this logic.

Cheers,

Dimitris

Change History (4)

by Dimitris Glynos, 8 years ago

ModelAdmin delete_queryset git diff (affects options.py and actions.py)

comment:1 by Tim Graham, 8 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #15522. Tests and documentation are also needed. Please send a pull request if you'd like to complete the patch. Thanks.

comment:2 by vangelou, 8 years ago

Resolution: duplicate
Status: closednew

Based on Dimitris idea i have send a pull request. The link is https://github.com/django/django/pull/8990

comment:3 by Tim Graham, 8 years ago

Resolution: duplicate
Status: newclosed

Please use ticket #15522 instead. This ticket is closed as a duplicate of that one.

Note: See TracTickets for help on using tickets.
Back to Top