perf: 用户工作台资产显示更多字段 (#10338)

Co-authored-by: feng <1304903146@qq.com>
pull/10339/head
fit2bot 2023-04-25 14:36:01 +08:00 committed by GitHub
parent f51af9736b
commit 8fe5ab42e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -30,8 +30,9 @@ class AssetPermedSerializer(OrgResourceModelSerializerMixin):
class Meta:
model = Asset
only_fields = [
"id", "name", "address", 'domain', 'platform',
"comment", "org_id", "is_active",
'id', 'name', 'address', 'domain', 'platform',
'comment', 'org_id', 'is_active', 'date_verified',
'created_by', 'date_created', 'connectivity', 'nodes'
]
fields = only_fields + ['protocols', 'category', 'type'] + ['org_name']
read_only_fields = fields