fix documents

This commit is contained in:
j 2017-06-01 17:00:36 +02:00
parent fb1c42ffaf
commit fbd94867fc
1 changed files with 1 additions and 1 deletions

View File

@ -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))