mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-05 01:16:27 +00:00
Fix delete_set form
This commit is contained in:
parent
2c815ab98c
commit
6a590570c5
1 changed files with 1 additions and 1 deletions
|
@ -255,7 +255,7 @@ def can_delete_set(model):
|
|||
all_objects = model.objects.all()
|
||||
instances_id = []
|
||||
for instance in all_objects:
|
||||
can, _msg = instance.can_delete(request.user)
|
||||
can, _msg, _reason = instance.can_delete(request.user)
|
||||
if can:
|
||||
instances_id.append(instance.id)
|
||||
instances = model.objects.filter(id__in=instances_id)
|
||||
|
|
Loading…
Reference in a new issue