]> git.parisson.com Git - teleforma.git/commitdiff
bugfix
authorGuillaume Pellerin <yomguy@parisson.com>
Sun, 4 May 2014 21:14:16 +0000 (23:14 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Sun, 4 May 2014 21:14:16 +0000 (23:14 +0200)
teleforma/management/commands/teleforma-import-seminar-media.py

index 26f91227f8926d9fab876667b797601d2eca6294..7382a6274c0fb1d13aa5bf701a222a96fe83918f 100644 (file)
@@ -230,7 +230,7 @@ class Command(BaseCommand):
                                 files = os.listdir(dir)
                                 code = item.code + '_preview'
                                 title = item.title + ' (preview)'
-                                item = MediaItem(collection=collection, code=id)
+                                item = self.get_item(collection, code)
                                 item.title = title
                                 item.save()
                                 for file in files: