Action docs
delete selected:
If you want to override this behavior, simply write a custom action that performs the deletion in your preferred way - for example, by calling Model.delete () for each of the selected elements.
This discussion
has an example of overriding 'delete_selected' for a model. It can be implemented as follows:
class SomeModelAdmin(admin.ModelAdmin): actions = ['custom_delete_selected'] def custom_delete_selected(self, request, queryset):
source share