From: yomguy Date: Wed, 18 Jul 2012 14:58:47 +0000 (+0200) Subject: fix X-Git-Tag: 0.7-dev^2~99 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=9aa9670b44c925363c702542c212c10ce3d63e60;p=teleforma.git fix --- diff --git a/teleforma/management/commands/teleforma-import-conferences.py b/teleforma/management/commands/teleforma-import-conferences.py index 4b07603c..3cc8a162 100644 --- a/teleforma/management/commands/teleforma-import-conferences.py +++ b/teleforma/management/commands/teleforma-import-conferences.py @@ -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