From ff36963f60e6d1217a63af7234ed775eeac7927c Mon Sep 17 00:00:00 2001 From: Piotr Dobrowolski Date: Mon, 29 May 2017 15:39:28 +0200 Subject: [PATCH] Fix multiple items removal --- storage/admin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/storage/admin.py b/storage/admin.py index df53b54..d1684ad 100644 --- a/storage/admin.py +++ b/storage/admin.py @@ -54,5 +54,9 @@ class ItemAdmin(admin.ModelAdmin): 'http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js', ) + def response_action(self, request, queryset): + with Item.disabled_tree_trigger(): + return super(ItemAdmin, self).response_action(request, queryset) + admin.site.register(Item, ItemAdmin) admin.site.register(Category)