fix setting edit icon

This commit is contained in:
j 2013-07-14 16:58:01 +00:00
parent e020941705
commit 8b9aef56b4

View file

@ -5,6 +5,8 @@ from __future__ import division, with_statement
import re
import os
import shutil
from glob import glob
import subprocess
import ox
from django.conf import settings
@ -179,7 +181,7 @@ class Edit(models.Model):
self.poster_frames = tuple(poster_frames)
self.save()
for i in self.poster_frames:
s = Item.objects.filter(itemId=i['item'])
qs = Item.objects.filter(itemId=i['item'])
if qs.count() > 0:
frame = qs[0].frame(i['position'])
if frame: