From e1b497fc93c0af2224863d2cbe51a76380f52bf0 Mon Sep 17 00:00:00 2001 From: Christopher Byrd Date: Tue, 12 Nov 2024 08:40:47 -0800 Subject: [PATCH] nit #11570 --- arches/app/models/graph.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arches/app/models/graph.py b/arches/app/models/graph.py index a68245ac97..d8dec22d2c 100644 --- a/arches/app/models/graph.py +++ b/arches/app/models/graph.py @@ -2430,7 +2430,6 @@ def update_from_editable_future_graph(self): raise Exception(_("No identifiable future Graph")) with transaction.atomic(): - foo = JSONDeserializer().deserialize(JSONSerializer().serialize(self)) serialized_editiable_future_graph = JSONDeserializer().deserialize( JSONSerializer().serialize(editable_future_graph) ) @@ -2535,9 +2534,9 @@ def update_from_editable_future_graph(self): serialized_editiable_future_graph["root"]["source_identifier_id"] = None serialized_editiable_future_graph["has_unpublished_changes"] = False - serialized_editiable_future_graph["resource_instance_lifecycle_id"] = foo[ - "resource_instance_lifecycle_id" - ] + serialized_editiable_future_graph["resource_instance_lifecycle_id"] = str( + self.resource_instance_lifecycle_id + ) serialized_editiable_future_graph["source_identifier_id"] = None serialized_editiable_future_graph["graphid"] = str(self.pk)