Browse Source

perf: 修改账号搜索

pull/6572/head
ibuler 3 years ago
parent
commit
988d686418
  1. 4
      apps/applications/api/account.py

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

Loading…
Cancel
Save