From 13527cd369cde87a439ecc46bb2f68dd85cd7606 Mon Sep 17 00:00:00 2001 From: Viicos <65306057+Viicos@users.noreply.github.com> Date: Wed, 27 Dec 2023 12:11:16 +0100 Subject: [PATCH] format --- src/objects/api/serializers.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/objects/api/serializers.py b/src/objects/api/serializers.py index b8ee053c..4e7cc4b4 100644 --- a/src/objects/api/serializers.py +++ b/src/objects/api/serializers.py @@ -132,9 +132,7 @@ def update(self, instance, validated_data): validated_data["version"] = instance.version if self.partial and "data" in validated_data: # Apply JSON Merge Patch for record data - validated_data["data"] = merge_patch( - instance.data, validated_data["data"] - ) + validated_data["data"] = merge_patch(instance.data, validated_data["data"]) record = super().create(validated_data) return record