From c0a6dd5b3ac7204736dd5f5efb381695cd2cf779 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 31 Dec 2013 11:19:56 +0100 Subject: [PATCH] fix item id --- teleforma/management/commands/teleforma-import-seminar-media.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.39.5