When bulk-deleting, skip objects which are not "deletable"
whatever that means in context
This commit is contained in:
parent
4ecea891b3
commit
90075b3b65
|
@ -1728,6 +1728,7 @@ class MasterView(View):
|
|||
def bulk_delete_objects(self, session, objects, progress=None):
|
||||
|
||||
def delete(obj, i):
|
||||
if self.deletable_instance(obj):
|
||||
self.delete_instance(obj)
|
||||
if i % 1000 == 0:
|
||||
session.flush()
|
||||
|
|
Loading…
Reference in a new issue