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