]> git.parisson.com Git - teleforma.git/commitdiff
fix item id
authorGuillaume Pellerin <yomguy@parisson.com>
Tue, 31 Dec 2013 10:19:56 +0000 (11:19 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Tue, 31 Dec 2013 10:19:56 +0000 (11:19 +0100)
teleforma/management/commands/teleforma-import-seminar-media.py

index 9256195fbdd13a2c3a9d437d87a1270d25575e1d..a0abd6a275dbfc72565208a7af712c98340f02f9 100644 (file)
@@ -167,7 +167,7 @@ class Command(BaseCommand):
                         else:
                             collection = collections[0]
 
-                        id = '_'.join([period.name, collection_id, ext, str(media_rank)])
+                        id = '_'.join([period.name, '2', collection_id, ext, str(media_rank)])
 
                         items = MediaItem.objects.filter(collection=collection, code=id)
                         if not items: