director might not be set
This commit is contained in:
parent
9241e10fae
commit
2ae257380d
1 changed files with 2 additions and 1 deletions
|
@ -103,9 +103,10 @@ class Text(models.Model):
|
||||||
item_id = clip['item']
|
item_id = clip['item']
|
||||||
cited[item_id] = {
|
cited[item_id] = {
|
||||||
'title': clip['title'],
|
'title': clip['title'],
|
||||||
'director': clip['director'],
|
|
||||||
'id': item_id,
|
'id': item_id,
|
||||||
}
|
}
|
||||||
|
if 'director' in clip:
|
||||||
|
cited[item_id]['director'] = clip['director']
|
||||||
for annotation in clip['layers'][layer]:
|
for annotation in clip['layers'][layer]:
|
||||||
if 'user' in self.data and annotation['user'] == self.data['user']:
|
if 'user' in self.data and annotation['user'] == self.data['user']:
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue