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)