diff --git a/arches/app/models/graph.py b/arches/app/models/graph.py index a531ee953d..b14d593ded 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 00129b869a..fd858aba14 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"