feat: 取消资产配置相关字段只读模式 (#5182)

* feat: 取消资产配置相关字段只读模式

* feat: 取消资产配置相关字段只读模式
pull/5191/head
Jiangjie.Bai 4 years ago committed by GitHub
parent 2ccc5beeda
commit 4c469afa95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -98,9 +98,6 @@ class AssetSerializer(BulkOrgResourceModelSerializer):
fields_as = list(annotates_fields.keys())
fields = fields_small + fields_fk + fields_m2m + fields_as
read_only_fields = [
'vendor', 'model', 'sn', 'cpu_model', 'cpu_count',
'cpu_cores', 'cpu_vcpus', 'memory', 'disk_total', 'disk_info',
'os', 'os_version', 'os_arch', 'hostname_raw',
'created_by', 'date_created',
] + fields_as

Loading…
Cancel
Save