]> git.parisson.com Git - teleforma.git/commitdiff
fix
authoryomguy <yomguy@parisson.com>
Wed, 18 Jul 2012 14:58:47 +0000 (16:58 +0200)
committeryomguy <yomguy@parisson.com>
Wed, 18 Jul 2012 14:58:47 +0000 (16:58 +0200)
teleforma/management/commands/teleforma-import-conferences.py

index 4b07603c7a8aee7ac53c5f4511bfb452e064b84e..3cc8a162bc96c43ed3e6e5e6aad9819eb777dd6b 100644 (file)
@@ -75,8 +75,7 @@ class Command(BaseCommand):
                     exist = False
                     medias = conference.media.all()
                     for media in medias:
-                        items = media.items.filter(file=path)
-                        if items:
+                        if media.item.file == path:
                             exist = True
                             break