From 9aa9670b44c925363c702542c212c10ce3d63e60 Mon Sep 17 00:00:00 2001 From: yomguy Date: Wed, 18 Jul 2012 16:58:47 +0200 Subject: [PATCH] fix --- teleforma/management/commands/teleforma-import-conferences.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.39.5