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

perf: 修改账号搜索
pull/6573/head
老广 2021-07-30 19:52:08 +08:00 committed by GitHub
commit 5f6c207721
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

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