[Update] 修复网域列表页面无法搜索问题

pull/3482/head
jym503558564 2019-12-03 10:40:55 +08:00
parent 715b04e2b2
commit 7c5592fa36
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,8 @@ __all__ = ['DomainViewSet', 'GatewayViewSet', "GatewayTestConnectionApi"]
class DomainViewSet(OrgBulkModelViewSet):
model = Domain
filter_fields = ("name", )
search_fields = filter_fields
permission_classes = (IsOrgAdminOrAppUser,)
serializer_class = serializers.DomainSerializer