Browse Source

fix: Fixed ACLs Asset connect select attribute assets while both include labels not matched.

pull/13219/head
Bai 6 months ago committed by Bryan
parent
commit
7c4c0b5924
  1. 2
      apps/labels/mixins.py

2
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

Loading…
Cancel
Save