Skip to content

Commit

Permalink
#334 Allow Inforequest, InforequestDraft and WizardDraft models admin…
Browse files Browse the repository at this point in the history
… bulk delete
  • Loading branch information
viliambalaz committed Aug 24, 2021
1 parent f6a3973 commit 9427a84
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions chcemvediet/apps/inforequests/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions chcemvediet/apps/wizards/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9427a84

Please sign in to comment.