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

pull/11786/head
feng 2023-10-08 16:22:01 +08:00 committed by 老广
parent 0f0af19d49
commit c464e95a21
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)