mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-01 06:45:55 +00:00
parent
a844ce23e4
commit
30b19d31eb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user