forked from 0x2620/pandora
ignore broken poster frames
This commit is contained in:
parent
9881bfa62a
commit
05aa23166e
1 changed files with 7 additions and 6 deletions
|
@ -271,6 +271,7 @@ class List(models.Model):
|
||||||
self.save()
|
self.save()
|
||||||
for i in self.poster_frames:
|
for i in self.poster_frames:
|
||||||
from item.models import Item
|
from item.models import Item
|
||||||
|
if 'item' in i:
|
||||||
qs = Item.objects.filter(public_id=i['item'])
|
qs = Item.objects.filter(public_id=i['item'])
|
||||||
if qs.count() > 0:
|
if qs.count() > 0:
|
||||||
if i.get('position'):
|
if i.get('position'):
|
||||||
|
|
Loading…
Reference in a new issue