From 7c4c0b5924358d0dd20d98fc798d15f37959bb3f Mon Sep 17 00:00:00 2001 From: Bai Date: Tue, 14 May 2024 16:12:34 +0800 Subject: [PATCH] fix: Fixed ACLs Asset connect select attribute assets while both include labels not matched. --- apps/labels/mixins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/labels/mixins.py b/apps/labels/mixins.py index bb059721d..f0896d6f6 100644 --- a/apps/labels/mixins.py +++ b/apps/labels/mixins.py @@ -57,7 +57,7 @@ class LabeledMixin(models.Model): resources = resources.filter(label_id__in=label_ids) \ .values('res_id') \ .order_by('res_id') \ - .annotate(count=Count('res_id', distinct=True)) \ + .annotate(count=Count('res_id')) \ .values('res_id', 'count') \ .filter(count=len(label_ids)) return resources