perf: some word translate

This commit is contained in:
ibuler
2024-06-25 14:21:29 +08:00
committed by 老广
parent 66615b7dd3
commit 85700a2a26
3 changed files with 3 additions and 3 deletions

View File

@@ -776,7 +776,7 @@ class JSONFilterMixin:
if match == "m2m_all":
user_id = (
bindings.values("user_id")
.annotate(count=Count("user_id", distinct=True))
.annotate(count=Count("user_id")) # 这里不能有 distinct 会导致 count 不准确, acls 中过滤用户时会出现问题
.filter(count=len(value))
.values_list("user_id", flat=True)
)