From 220d54e9c7aaf869b0f2fab07a49d4d0214d0414 Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Tue, 3 Dec 2024 13:15:55 -0500 Subject: [PATCH] Fix failure to export branches from graph designer #11644 --- arches/app/models/graph.py | 1 + tests/views/graph_manager_tests.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arches/app/models/graph.py b/arches/app/models/graph.py index a531ee953de..b14d593ded8 100644 --- a/arches/app/models/graph.py +++ b/arches/app/models/graph.py @@ -1075,6 +1075,7 @@ def flatten_tree(tree, node_id_list=[]): copy_of_self.root = root_node copy_of_self.name = root_node.name copy_of_self.isresource = False + copy_of_self.resource_instance_lifecycle = None copy_of_self.subtitle = "" copy_of_self.description = "" copy_of_self.author = "" diff --git a/tests/views/graph_manager_tests.py b/tests/views/graph_manager_tests.py index 00129b869aa..fd858aba148 100644 --- a/tests/views/graph_manager_tests.py +++ b/tests/views/graph_manager_tests.py @@ -157,7 +157,7 @@ def setUpTestData(cls): } Edge.objects.create(**edges_dict).save() - graph = Graph.new() + graph = Graph.new(is_resource=True) graph.ontology_id = "e6e8db47-2ccf-11e6-927e-b8f6b115d7dd" graph.root.ontologyclass = "http://www.cidoc-crm.org/cidoc-crm/E1_CRM_Entity" graph.name = "TEST GRAPH"