Merge pull request #3482 from jumpserver/domain_search

[Update] 修复网域列表页面无法搜索问题
pull/3485/head
BaiJiangJie 2019-12-03 12:01:05 +08:00 committed by GitHub
commit 45444149dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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