fix: 账号批量更新失败 (#11785)

Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
fit2bot 2023-10-10 17:24:56 +08:00 committed by GitHub
parent a844ce23e4
commit 30b19d31eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ class VaultManagerMixin(models.Manager):
def bulk_update(self, objs, fields, batch_size=None):
fields = ["_secret" if field == "secret" else field for field in fields]
objs = super().bulk_update(objs, fields, batch_size=batch_size)
super().bulk_update(objs, fields, batch_size=batch_size)
for obj in objs:
post_save.send(obj.__class__, instance=obj, created=False)
return objs