|
|
@ -75,12 +75,12 @@ class AccountTemplateSerializer(BaseAccountSerializer): |
|
|
|
return [asset.id for asset in secret_type_supports] |
|
|
|
return [asset.id for asset in secret_type_supports] |
|
|
|
|
|
|
|
|
|
|
|
def update(self, instance, validated_data): |
|
|
|
def update(self, instance, validated_data): |
|
|
|
diff = { |
|
|
|
# diff = { |
|
|
|
k: v for k, v in validated_data.items() |
|
|
|
# k: v for k, v in validated_data.items() |
|
|
|
if getattr(instance, k) != v |
|
|
|
# if getattr(instance, k) != v |
|
|
|
} |
|
|
|
# } |
|
|
|
instance = super().update(instance, validated_data) |
|
|
|
instance = super().update(instance, validated_data) |
|
|
|
self.bulk_update_accounts(instance, diff) |
|
|
|
# self.bulk_update_accounts(instance, diff) |
|
|
|
return instance |
|
|
|
return instance |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|