From 0cd3419e09ccbd4badbdf41f909b7ce68f7690ba Mon Sep 17 00:00:00 2001 From: xinwen Date: Mon, 16 Aug 2021 16:11:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E6=8E=88=E6=9D=83=E5=88=97=E8=A1=A8=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/perms/api/application/application_permission.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/perms/api/application/application_permission.py b/apps/perms/api/application/application_permission.py index c03bf9150..a97665d53 100644 --- a/apps/perms/api/application/application_permission.py +++ b/apps/perms/api/application/application_permission.py @@ -42,7 +42,7 @@ class ApplicationPermissionViewSet(BasePermissionViewSet): return queryset if not applications: return queryset.none() - queryset = queryset.filter(applications=applications) + queryset = queryset.filter(applications__in=applications) return queryset def filter_queryset(self, queryset):