From: Guillaume Pellerin Date: Thu, 7 May 2015 09:04:01 +0000 (+0200) Subject: mv long title to descriptions X-Git-Tag: 1.6a~4^2~77 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=775606ee3f567562b92e89bac2d1790867b7a598;p=telemeta.git mv long title to descriptions --- diff --git a/telemeta/management/commands/telemeta-import-corpus-from-dir.py b/telemeta/management/commands/telemeta-import-corpus-from-dir.py index 9b66aaa1..ec3a0248 100644 --- a/telemeta/management/commands/telemeta-import-corpus-from-dir.py +++ b/telemeta/management/commands/telemeta-import-corpus-from-dir.py @@ -154,7 +154,7 @@ class Command(BaseCommand): if len(data) > 1: item.track = data[1].replace('\n', '') if len(title) > 1: - item.comment = '. '.join(title[1:]) + item.descriptions = '. '.join(title[1:]) item.save() for related_file in os.listdir(root): diff --git a/telemeta/templates/telemeta/inc/collection_epub.html b/telemeta/templates/telemeta/inc/collection_epub.html index 37020245..cddac5da 100644 --- a/telemeta/templates/telemeta/inc/collection_epub.html +++ b/telemeta/templates/telemeta/inc/collection_epub.html @@ -5,7 +5,7 @@ {% for item in items %}

- Son {{ item.old_code }} : {{ item.title }}. {{ item.comment }} ({{ item.track }}) + Son {{ item.old_code }} : {{ item.title }}. {{ item.descriptions }} ({{ item.track }})