From 4cdddaa4930e9262745c0a443fdba92dfd9c5b03 Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 12 Nov 2018 16:43:35 +0800 Subject: [PATCH] =?UTF-8?q?[Bugfix]=20=E4=BF=AE=E5=A4=8D=E7=BD=91=E5=9F=9F?= =?UTF-8?q?=E7=BD=91=E5=85=B3=E5=88=97=E8=A1=A8=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/api/domain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/assets/api/domain.py b/apps/assets/api/domain.py index 2e24829dc..721c149b7 100644 --- a/apps/assets/api/domain.py +++ b/apps/assets/api/domain.py @@ -39,7 +39,7 @@ class DomainViewSet(BulkModelViewSet): class GatewayViewSet(BulkModelViewSet): - filter_fields = ("domain__name", "name", "username", "ip") + filter_fields = ("domain__name", "name", "username", "ip", "domain") search_fields = filter_fields queryset = Gateway.objects.all() permission_classes = (IsOrgAdmin,)