fix descriptions too

This commit is contained in:
j 2017-07-20 19:13:37 +02:00
parent 6970cbd08e
commit 981b56c87d

View file

@ -200,6 +200,8 @@ class Imdb(models.Model):
for key in ('title', 'description'): for key in ('title', 'description'):
if key in c: if key in c:
c[key] = ox.sanitize_html(fix_links(c[key])) c[key] = ox.sanitize_html(fix_links(c[key]))
if key == 'description':
c[key] = fix_links(c[key])
return data return data
def info(self, key): def info(self, key):