diff --git a/django/contrib/admin/actions.py b/django/contrib/admin/actions.py
index 6fdf070..4f293d1 100644
a
|
b
|
def delete_selected(modeladmin, request, queryset):
|
46 | 46 | for obj in queryset: |
47 | 47 | obj_display = force_text(obj) |
48 | 48 | modeladmin.log_deletion(request, obj, obj_display) |
49 | | queryset.delete() |
| 49 | modeladmin.delete_queryset(request, queryset) |
50 | 50 | modeladmin.message_user(request, _("Successfully deleted %(count)d %(items)s.") % { |
51 | 51 | "count": n, "items": model_ngettext(modeladmin.opts, n) |
52 | 52 | }, messages.SUCCESS) |
diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py
index 499d27d..71dd5c1 100644
a
|
b
|
class ModelAdmin(BaseModelAdmin):
|
982 | 982 | """ |
983 | 983 | obj.delete() |
984 | 984 | |
| 985 | def delete_queryset(self, request, queryset): |
| 986 | """ |
| 987 | Given a queryset instance delete it from the database. |
| 988 | """ |
| 989 | queryset.delete() |
| 990 | |
985 | 991 | def save_formset(self, request, form, formset, change): |
986 | 992 | """ |
987 | 993 | Given an inline formset save it to the database. |