fix: 修复账号批量更新失败问题

pull/11767/head
feng 2023-10-08 16:22:01 +08:00 committed by 老广
parent b42014d58e
commit ae5d4257ad
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ class VaultManagerMixin(models.Manager):
return objs
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)
for obj in objs:
post_save.send(obj.__class__, instance=obj, created=False)