From: Guillaume Pellerin Date: Tue, 31 Dec 2013 10:19:56 +0000 (+0100) Subject: fix item id X-Git-Tag: 2.8.1-pro~336 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=c0a6dd5b3ac7204736dd5f5efb381695cd2cf779;p=teleforma.git fix item id --- diff --git a/teleforma/management/commands/teleforma-import-seminar-media.py b/teleforma/management/commands/teleforma-import-seminar-media.py index 9256195f..a0abd6a2 100644 --- a/teleforma/management/commands/teleforma-import-seminar-media.py +++ b/teleforma/management/commands/teleforma-import-seminar-media.py @@ -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: