From: Guillaume Pellerin Date: Fri, 2 May 2014 12:30:09 +0000 (+0200) Subject: bugfix X-Git-Tag: 2.8.1-pro~289^2~3 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=5783841235703c4303c7d971776e926a4606579d;p=teleforma.git bugfix --- diff --git a/teleforma/management/commands/teleforma-import-seminar-media.py b/teleforma/management/commands/teleforma-import-seminar-media.py index 37973694..aebb90e9 100644 --- a/teleforma/management/commands/teleforma-import-seminar-media.py +++ b/teleforma/management/commands/teleforma-import-seminar-media.py @@ -179,7 +179,7 @@ class Command(BaseCommand): id = '_'.join([period.name, '20', collection_id, ext, str(media_rank)]) - item = get_item(collection, id) + item = self.get_item(collection, id) item.title = name item.file = path @@ -230,7 +230,7 @@ class Command(BaseCommand): files = os.listdir(dir) code = item.code + '_preview' title = item.title + ' (preview)' - item = get_item(collection, id) + item = self.get_item(collection, id) item.title = title item.save() for file in files: