From 6a590570c55c03b488d1439bc3f732f1831a2587 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Tue, 15 Oct 2019 00:17:38 +0200 Subject: [PATCH] Fix delete_set form --- re2o/acl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/re2o/acl.py b/re2o/acl.py index cf831a37..b36fd48c 100644 --- a/re2o/acl.py +++ b/re2o/acl.py @@ -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)