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

index d80c9d99fcc544d954518f4e3a5bd14a08d74881..945378a3d6ce4e2c187169a1c83fa1ee5499d519 100644 (file)
@@ -128,6 +128,8 @@ class Command(BaseCommand):
                         if media.item.file == path:
                             exist = True
                             break
+                        else:
+                            media.delete()
 
                     if not seminar in seminars:
                         seminars.append(seminar)