mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-04 02:26:34 +00:00
fix: 修复账号批量更新失败问题
This commit is contained in:
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
Block a user