diff --git a/app/text/models.py b/app/text/models.py index c611c69..ee18be2 100644 --- a/app/text/models.py +++ b/app/text/models.py @@ -103,9 +103,10 @@ class Text(models.Model): item_id = clip['item'] cited[item_id] = { 'title': clip['title'], - 'director': clip['director'], 'id': item_id, } + if 'director' in clip: + cited[item_id]['director'] = clip['director'] for annotation in clip['layers'][layer]: if 'user' in self.data and annotation['user'] == self.data['user']: continue