From ae5d4257ad642eb5c17305dfadf4087b183e3c70 Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Sun, 8 Oct 2023 16:22:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=B4=A6=E5=8F=B7?= =?UTF-8?q?=E6=89=B9=E9=87=8F=E6=9B=B4=E6=96=B0=E5=A4=B1=E8=B4=A5=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/accounts/models/mixins/vault.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/accounts/models/mixins/vault.py b/apps/accounts/models/mixins/vault.py index b8865ab7d..c5d0935c5 100644 --- a/apps/accounts/models/mixins/vault.py +++ b/apps/accounts/models/mixins/vault.py @@ -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)