Browse Source

fix: 资产创建失败 (#11824)

Co-authored-by: feng <1304903146@qq.com>
pull/11826/head
fit2bot 1 year ago committed by GitHub
parent
commit
e1278360af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/assets/serializers/asset/common.py

2
apps/assets/serializers/asset/common.py

@ -159,7 +159,7 @@ class AssetSerializer(BulkOrgResourceModelSerializer, WritableNestedModelSeriali
return
if isinstance(self.initial_data, list):
return
accounts = self.initial_data.get('accounts', None)
accounts = self.initial_data.pop('accounts', None)
self._accounts = accounts
def _get_protocols_required_default(self):

Loading…
Cancel
Save