add artist name

This commit is contained in:
j 2021-10-26 12:09:16 +01:00
commit bfac91c779
3 changed files with 4 additions and 2 deletions

View file

@ -145,7 +145,7 @@ class Text(models.Model):
if item_id:
item = Film.objects.filter(padma_id=item_id).first()
if item:
for key in ('title', 'title_zh'):
for key in ('title', 'title_zh', 'director'):
data['item_' + key] = item.data[key]
data['item_url'] = item.get_absolute_url()
if isinstance(self.annotations, list) and len(self.annotations) > 0: