From 4d8a61b25bb7d93f15063885bffaf18251a9c37a Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sun, 12 Feb 2012 15:01:07 -0400 Subject: [PATCH] Fix document container index nodes --- apps/document_indexing/api.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/document_indexing/api.py b/apps/document_indexing/api.py index 0e68bb623b..7112f1d3a2 100644 --- a/apps/document_indexing/api.py +++ b/apps/document_indexing/api.py @@ -86,8 +86,7 @@ def cascade_eval(eval_dict, document, template_node, parent_index_instance=None) 'expression': template_node.expression, 'exception': exc}) else: if result: - index_instance, created = IndexInstanceNode.objects.get_or_create(index_template_node=template_node) - index_instance.value = result + index_instance, created = IndexInstanceNode.objects.get_or_create(index_template_node=template_node, value=result) index_instance.parent = parent_index_instance index_instance.save() #if created: