]> git.parisson.com Git - telemeta.git/commitdiff
mv long title to descriptions
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 7 May 2015 09:04:01 +0000 (11:04 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 7 May 2015 09:04:01 +0000 (11:04 +0200)
telemeta/management/commands/telemeta-import-corpus-from-dir.py
telemeta/templates/telemeta/inc/collection_epub.html

index 9b66aaa172b2448cd736d51d4491d2710e8d932f..ec3a0248a09d8424dc5e7a641a33db24a49af6ce 100644 (file)
@@ -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):
index 37020245e6e472196fea600b5d7a372fa5d81315..cddac5dab6e2851d512cca60a5bb70a0638748b2 100644 (file)
@@ -5,7 +5,7 @@
 {% for item in items %}
 <div class="item">
   <h3>
-  <b>Son {{ item.old_code }}</b> : {{ item.title }}. {{ item.comment }} ({{ item.track }})
+  <b>Son {{ item.old_code }}</b> : {{ item.title }}. {{ item.descriptions }} ({{ item.track }})
   </h3>
 
   <div class="item-audio">