fix: 批量添加账号su_from 错乱 (#10463)

Co-authored-by: feng <1304903146@qq.com>
pull/10464/head
fit2bot 2 years ago committed by GitHub
parent f7e0f533e0
commit 9cc9600a4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,4 +1,5 @@
import uuid
from copy import deepcopy
from django.db import IntegrityError
from django.db.models import Q
@ -310,6 +311,7 @@ class AssetAccountBulkSerializer(
def perform_create(self, vd, handler):
lookup = self.get_filter_lookup(vd)
vd = deepcopy(vd)
self.generate_su_from_data(vd)
try:
instance, changed, state = handler(vd, lookup)

Loading…
Cancel
Save