From 41cf9ec744957baec60588ab350e4f528a80a05a Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 24 Aug 2011 10:36:15 +0200 Subject: [PATCH] filter --- pandora/item/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index 3dcbc705c..48635c881 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -944,7 +944,7 @@ class Item(models.Model): def poster_frames(self): frames = [] offset = 0 - for f in self.files(active=True, is_video=True): + for f in self.files.filter(active=True, is_video=True): for ff in f.frames.all(): frames.append({ 'position': offset + ff.position,