]> git.parisson.com Git - teleforma.git/commitdiff
add period name to item id
authorGuillaume Pellerin <yomguy@parisson.com>
Mon, 30 Dec 2013 12:41:30 +0000 (13:41 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Mon, 30 Dec 2013 12:41:30 +0000 (13:41 +0100)
teleforma/management/commands/teleforma-import-seminar-media.py

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