From 9427a84dd39915ae2088bab6d6bb5569b7498b94 Mon Sep 17 00:00:00 2001 From: viliambalaz Date: Tue, 24 Aug 2021 11:54:04 +0200 Subject: [PATCH] #334 Allow Inforequest, InforequestDraft and WizardDraft models admin bulk delete --- chcemvediet/apps/inforequests/admin.py | 6 ++++++ chcemvediet/apps/wizards/admin.py | 3 +++ 2 files changed, 9 insertions(+) diff --git a/chcemvediet/apps/inforequests/admin.py b/chcemvediet/apps/inforequests/admin.py index 5bf9ee7d4..89c1f0a57 100644 --- a/chcemvediet/apps/inforequests/admin.py +++ b/chcemvediet/apps/inforequests/admin.py @@ -158,6 +158,9 @@ class InforequestAdmin(admin.ModelAdmin): inlines = [ BranchInline, ] + actions = [ + u'delete_selected', + ] def get_queryset(self, request): queryset = super(InforequestAdmin, self).get_queryset(request) @@ -208,6 +211,9 @@ class InforequestDraftAdmin(admin.ModelAdmin): ] inlines = [ ] + actions = [ + u'delete_selected', + ] def get_queryset(self, request): queryset = super(InforequestDraftAdmin, self).get_queryset(request) diff --git a/chcemvediet/apps/wizards/admin.py b/chcemvediet/apps/wizards/admin.py index 675e80c60..a9f44353f 100644 --- a/chcemvediet/apps/wizards/admin.py +++ b/chcemvediet/apps/wizards/admin.py @@ -44,6 +44,9 @@ class WizardDraftAdmin(admin.ModelAdmin): ] inlines = [ ] + actions = [ + u'delete_selected', + ] def get_queryset(self, request): queryset = super(WizardDraftAdmin, self).get_queryset(request)