From d75b7c014ebcaddcebc165554ae9fae35015a5f5 Mon Sep 17 00:00:00 2001 From: fit2bot <68588906+fit2bot@users.noreply.github.com> Date: Thu, 20 Apr 2023 18:29:31 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=9B=B4=E6=96=B0=E6=A8=A1=E7=89=88?= =?UTF-8?q?=E6=9A=82=E4=B8=8D=E5=90=8C=E6=AD=A5=E4=BF=AE=E6=94=B9=E8=B4=A6?= =?UTF-8?q?=E5=8F=B7=20(#10285)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: feng <1304903146@qq.com> --- apps/accounts/serializers/account/template.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/accounts/serializers/account/template.py b/apps/accounts/serializers/account/template.py index f6ac16224..1de4d7c1d 100644 --- a/apps/accounts/serializers/account/template.py +++ b/apps/accounts/serializers/account/template.py @@ -75,12 +75,12 @@ class AccountTemplateSerializer(BaseAccountSerializer): return [asset.id for asset in secret_type_supports] def update(self, instance, validated_data): - diff = { - k: v for k, v in validated_data.items() - if getattr(instance, k) != v - } + # diff = { + # k: v for k, v in validated_data.items() + # if getattr(instance, k) != v + # } instance = super().update(instance, validated_data) - self.bulk_update_accounts(instance, diff) + # self.bulk_update_accounts(instance, diff) return instance