Merge pull request #10286 from jumpserver/dev

v3.2.0
pull/10289/head
Jiangjie.Bai 2 years ago committed by GitHub
commit f2e7845d4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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