From fbd94867fca9b0fecf745374c28dc2a635a79e6a Mon Sep 17 00:00:00 2001 From: j Date: Thu, 1 Jun 2017 17:00:36 +0200 Subject: [PATCH] fix documents --- pandora/annotation/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/annotation/models.py b/pandora/annotation/models.py index a10a63921..633e791df 100644 --- a/pandora/annotation/models.py +++ b/pandora/annotation/models.py @@ -253,7 +253,7 @@ class Annotation(models.Model): def update_documents(self): from document.models import Document from document.utils import get_documents - old = [d.id for id in self.documents.all()] + old = [d.id for d in self.documents.all()] current = get_documents(self.value) if self.value else [] removed = list(set(old) - set(current)) added = list(set(current) - set(old))