fix: 修复 favorite-assets Serializer 缺少 protocols 字段的问题

pull/8928/head
Jiangjie.Bai 2022-11-22 11:05:52 +08:00
parent 436cb7b6e1
commit d543c3efe7
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class AssetGrantedSerializer(serializers.ModelSerializer):
'domain', 'platform',
"comment", "org_id", "is_active",
]
fields = only_fields + ['category', 'type'] + ['org_name']
fields = only_fields + ['protocols', 'category', 'type'] + ['org_name']
read_only_fields = fields