item can be unavailable

This commit is contained in:
j 2016-09-20 02:55:06 +02:00
parent 59bd4fffa8
commit 23143185ea

View file

@ -247,6 +247,7 @@ class List(models.Model):
from item.models import Item
qs = Item.objects.filter(public_id=i['item'])
if qs.count() > 0:
if i.get('position'):
frame = qs[0].frame(i['position'])
if frame:
frames.append(frame)