mirror of https://github.com/jumpserver/jumpserver
perf: 修复批量更新资产导致的错误
parent
ae0daddbea
commit
806baeb136
|
@ -157,6 +157,8 @@ class AssetSerializer(BulkOrgResourceModelSerializer, WritableNestedModelSeriali
|
||||||
def _extract_accounts(self):
|
def _extract_accounts(self):
|
||||||
if not getattr(self, 'initial_data', None):
|
if not getattr(self, 'initial_data', None):
|
||||||
return
|
return
|
||||||
|
if isinstance(self.initial_data, list):
|
||||||
|
return
|
||||||
accounts = self.initial_data.pop('accounts', None)
|
accounts = self.initial_data.pop('accounts', None)
|
||||||
self._accounts = accounts
|
self._accounts = accounts
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue