Browse Source

perf: 更新模版暂不同步修改账号 (#10285)

Co-authored-by: feng <1304903146@qq.com>
pull/10286/head
fit2bot 2 years ago committed by GitHub
parent
commit
d75b7c014e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      apps/accounts/serializers/account/template.py

10
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

Loading…
Cancel
Save