mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-25 22:22:26 +00:00
Merge branch 'fix_delete_set' into 'dev'
Fix delete_set form See merge request federez/re2o!462
This commit is contained in:
commit
ef93bd7975
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