From b3b7575b0c9a975efa7e999c01af574378b84fda Mon Sep 17 00:00:00 2001 From: fit2bot <68588906+fit2bot@users.noreply.github.com> Date: Mon, 17 Apr 2023 15:07:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=89=B9=E9=87=8F=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E8=B5=84=E4=BA=A7=E8=B4=A6=E5=8F=B7=20=E9=94=99=E8=AF=AF=20sec?= =?UTF-8?q?ret=20(#10221)?= 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/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/accounts/serializers/account/account.py b/apps/accounts/serializers/account/account.py index de9931a62..1827ed439 100644 --- a/apps/accounts/serializers/account/account.py +++ b/apps/accounts/serializers/account/account.py @@ -264,7 +264,7 @@ class AssetAccountBulkSerializer(AccountCreateUpdateSerializerMixin, serializers @staticmethod def _handle_update_create(vd, lookup): ori = Account.objects.filter(**lookup).first() - if ori and ori.secret == vd['secret']: + if ori and ori.secret == vd.get('secret'): return ori, False, 'skipped' instance, value = Account.objects.update_or_create(defaults=vd, **lookup)