perf: 修改账号搜索

pull/6572/head
ibuler 3 years ago
parent 89e654af80
commit 988d686418

@ -19,12 +19,10 @@ class AccountFilterSet(BaseFilterSet):
username = filters.CharFilter(field_name='username') username = filters.CharFilter(field_name='username')
app = filters.CharFilter(field_name='applications', lookup_expr='exact') app = filters.CharFilter(field_name='applications', lookup_expr='exact')
app_name = filters.CharFilter(field_name='app_name', 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: class Meta:
model = ApplicationPermission model = ApplicationPermission
fields = [] fields = ['type', 'category']
class ApplicationAccountViewSet(JMSModelViewSet): class ApplicationAccountViewSet(JMSModelViewSet):

Loading…
Cancel
Save