From 8404db8cefe4e413f575d9266e6b6b846097d07a Mon Sep 17 00:00:00 2001 From: xinwen Date: Fri, 23 Oct 2020 15:14:15 +0800 Subject: [PATCH] =?UTF-8?q?fix(assets):=20=E4=BF=AE=E6=94=B9=20`AssetViewS?= =?UTF-8?q?et.filter=5Ffields`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/api/asset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/assets/api/asset.py b/apps/assets/api/asset.py index ee28a52bf..b6331db11 100644 --- a/apps/assets/api/asset.py +++ b/apps/assets/api/asset.py @@ -32,7 +32,7 @@ class AssetViewSet(FilterAssetByNodeMixin, OrgBulkModelViewSet): model = Asset filter_fields = ( "hostname", "ip", "systemuser__id", "admin_user__id", "platform__base", - "is_active", 'ip' + "is_active" ) search_fields = ("hostname", "ip") ordering_fields = ("hostname", "ip", "port", "cpu_cores")