From 158d49b230a1a86006ea3bc5c77054d8b76ba433 Mon Sep 17 00:00:00 2001 From: Bai Date: Fri, 2 Dec 2022 12:40:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E6=8E=88=E6=9D=83=E7=9A=84=E8=B5=84=E4=BA=A7=20API=20=E6=94=AF?= =?UTF-8?q?=E6=8C=81=20id=20=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/api/asset/asset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/assets/api/asset/asset.py b/apps/assets/api/asset/asset.py index 04da13061..ed8f9e9f8 100644 --- a/apps/assets/api/asset/asset.py +++ b/apps/assets/api/asset/asset.py @@ -37,7 +37,7 @@ class AssetFilterSet(BaseFilterSet): class Meta: model = Asset - fields = ["name", "address", "is_active", "type", "category", "hostname"] + fields = ["id", "name", "address", "is_active", "type", "category", "hostname"] class AssetViewSet(SuggestionMixin, NodeFilterMixin, OrgBulkModelViewSet):