From: Guillaume Pellerin Date: Mon, 30 Dec 2013 12:41:30 +0000 (+0100) Subject: add period name to item id X-Git-Tag: 2.8.1-pro~376 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=0f9278765f47a4afbb738ad5835b88e62fdac4ba;p=teleforma.git add period name to item id --- diff --git a/teleforma/management/commands/teleforma-import-seminar-media.py b/teleforma/management/commands/teleforma-import-seminar-media.py index ed358524..5a62ae43 100644 --- a/teleforma/management/commands/teleforma-import-seminar-media.py +++ b/teleforma/management/commands/teleforma-import-seminar-media.py @@ -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: