Browse Source

fix: 资产mini接口返回platform、protocols

pull/6703/head
Bai 3 years ago committed by Jiangjie.Bai
parent
commit
cbe0483b46
  1. 2
      apps/assets/serializers/asset.py

2
apps/assets/serializers/asset.py

@ -71,7 +71,7 @@ class AssetSerializer(BulkOrgResourceModelSerializer):
"""
class Meta:
model = Asset
fields_mini = ['id', 'hostname', 'ip']
fields_mini = ['id', 'hostname', 'ip', 'platform', 'protocols']
fields_small = fields_mini + [
'protocol', 'port', 'protocols', 'is_active', 'public_ip',
'number', 'vendor', 'model', 'sn', 'cpu_model', 'cpu_count',

Loading…
Cancel
Save