fix: 修复用户授权的资产 API 支持 id 过滤

pull/9147/head
Bai 2 years ago
parent 10e3100d3c
commit 158d49b230

@ -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):

Loading…
Cancel
Save