mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-29 19:32:55 +00:00
fix: 修复用户授权的资产 API 支持 id 过滤
This commit is contained in:
parent
10e3100d3c
commit
158d49b230
@ -37,7 +37,7 @@ class AssetFilterSet(BaseFilterSet):
|
|||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Asset
|
model = Asset
|
||||||
fields = ["name", "address", "is_active", "type", "category", "hostname"]
|
fields = ["id", "name", "address", "is_active", "type", "category", "hostname"]
|
||||||
|
|
||||||
|
|
||||||
class AssetViewSet(SuggestionMixin, NodeFilterMixin, OrgBulkModelViewSet):
|
class AssetViewSet(SuggestionMixin, NodeFilterMixin, OrgBulkModelViewSet):
|
||||||
|
Loading…
Reference in New Issue
Block a user