From 5783841235703c4303c7d971776e926a4606579d Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 2 May 2014 14:30:09 +0200 Subject: [PATCH] bugfix --- .../management/commands/teleforma-import-seminar-media.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.39.5