diff --git a/pandora/document/models.py b/pandora/document/models.py index a7659aa8..8c9f676d 100644 --- a/pandora/document/models.py +++ b/pandora/document/models.py @@ -599,7 +599,7 @@ class Document(models.Model): def update_linked_documents(self): if self.extension == 'html': - old = [d.id for id in self.linked_documents.all()] + old = [d.id for d in self.linked_documents.all()] current = utils.get_documents(self.data.get('text', '')) removed = list(set(old) - set(current)) added = list(set(current) - set(old))