mirror of https://github.com/jumpserver/jumpserver
fix: 修复账号批量更新失败问题
parent
b42014d58e
commit
ae5d4257ad
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue