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

pull/6703/head
Bai 3 years ago committed by Jiangjie.Bai
parent 10c2935df4
commit cbe0483b46

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

Loading…
Cancel
Save