Merge pull request #6572 from jumpserver/pr@dev@perf_account_filter

perf: 修改账号搜索
This commit is contained in:
老广
2021-07-30 19:52:08 +08:00
committed by GitHub

View File

@@ -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):