8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-23 23:43:47 +00:00

Fix delete_set form

This commit is contained in:
Gabriel Detraz 2019-10-15 00:17:38 +02:00 committed by klafyvel
parent 2c815ab98c
commit 6a590570c5

View file

@ -255,7 +255,7 @@ def can_delete_set(model):
all_objects = model.objects.all() all_objects = model.objects.all()
instances_id = [] instances_id = []
for instance in all_objects: for instance in all_objects:
can, _msg = instance.can_delete(request.user) can, _msg, _reason = instance.can_delete(request.user)
if can: if can:
instances_id.append(instance.id) instances_id.append(instance.id)
instances = model.objects.filter(id__in=instances_id) instances = model.objects.filter(id__in=instances_id)