fix: 资产批量更新500 (#11098)

Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
fit2bot
2023-07-26 19:16:43 +08:00
committed by GitHub
parent e90e61e8dd
commit 7f3426fecf

View File

@@ -157,6 +157,8 @@ class AssetSerializer(BulkOrgResourceModelSerializer, WritableNestedModelSeriali
def _extract_accounts(self):
if not getattr(self, 'initial_data', None):
return
if isinstance(self.initial_data, list):
return
accounts = self.initial_data.pop('accounts', None)
self._accounts = accounts