mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-01 22:58:59 +00:00
perf: 修改账号搜索
This commit is contained in:
parent
89e654af80
commit
988d686418
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user