From 26e81ec053aebfde6d22562d29ea41f3f3c33d10 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Thu, 16 Oct 2014 00:39:03 -0400 Subject: [PATCH] Fix method name --- mayan/apps/document_indexing/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mayan/apps/document_indexing/api.py b/mayan/apps/document_indexing/api.py index 5ee1a00336..64b4730591 100644 --- a/mayan/apps/document_indexing/api.py +++ b/mayan/apps/document_indexing/api.py @@ -55,8 +55,8 @@ def delete_indexes(document): warnings = [] - for index_instance in document.index_instance_nodes.all(): - index_warnings = cascade_document_remove(document, index_instance) + for index_node in document.node_instances.all(): + index_warnings = cascade_document_remove(document, index_node) warnings.extend(index_warnings) return warnings