From 988d6864180b30a766f72770ef7c775d5d92672e Mon Sep 17 00:00:00 2001 From: ibuler Date: Fri, 30 Jul 2021 19:48:23 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BF=AE=E6=94=B9=E8=B4=A6=E5=8F=B7?= =?UTF-8?q?=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/applications/api/account.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/applications/api/account.py b/apps/applications/api/account.py index 30cf77d51..1874b2bab 100644 --- a/apps/applications/api/account.py +++ b/apps/applications/api/account.py @@ -19,12 +19,10 @@ class AccountFilterSet(BaseFilterSet): username = filters.CharFilter(field_name='username') app = filters.CharFilter(field_name='applications', lookup_expr='exact') app_name = filters.CharFilter(field_name='app_name', lookup_expr='exact') - app_type = filters.CharFilter(field_name='app_type', lookup_expr='exact') - app_category = filters.CharFilter(field_name='app_category', lookup_expr='exact') class Meta: model = ApplicationPermission - fields = [] + fields = ['type', 'category'] class ApplicationAccountViewSet(JMSModelViewSet):