]> git.parisson.com Git - teleforma.git/commitdiff
delete all new seminar medias
authorGuillaume Pellerin <yomguy@parisson.com>
Mon, 30 Dec 2013 13:49:23 +0000 (14:49 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Mon, 30 Dec 2013 13:49:23 +0000 (14:49 +0100)
teleforma/management/commands/teleforma-import-seminar-media.py

index 154eaa63fb64750f21f7c360fd8803ce3253af4d..f08da4fae0b740eead271125303be489b66a94a4 100644 (file)
@@ -58,7 +58,7 @@ class Command(BaseCommand):
             media.delete()
 
     def delete_media(self, media):
-        for trans in media.item.transcoded.all()
+        for trans in media.item.transcoded.all():
                 trans.delete()
             media.item.delete()
             media.delete()