This commit is contained in:
j 2011-08-24 10:36:15 +02:00
parent 72c0a30d51
commit 41cf9ec744

View file

@ -944,7 +944,7 @@ class Item(models.Model):
def poster_frames(self): def poster_frames(self):
frames = [] frames = []
offset = 0 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(): for ff in f.frames.all():
frames.append({ frames.append({
'position': offset + ff.position, 'position': offset + ff.position,