From 7c5592fa36718f69f64fecb0f84655bf0b47ff17 Mon Sep 17 00:00:00 2001 From: jym503558564 <503558564@qq.com> Date: Tue, 3 Dec 2019 10:40:55 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20=E4=BF=AE=E5=A4=8D=E7=BD=91=E5=9F=9F?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E9=A1=B5=E9=9D=A2=E6=97=A0=E6=B3=95=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/api/domain.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/assets/api/domain.py b/apps/assets/api/domain.py index e6f6c0550..421e69544 100644 --- a/apps/assets/api/domain.py +++ b/apps/assets/api/domain.py @@ -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