make poster for new items

This commit is contained in:
j 2011-12-03 12:44:50 +01:00
parent fbeede2b71
commit c31647358e

View file

@ -118,6 +118,7 @@ def get_item(info, user=None, async=False):
except Item.DoesNotExist: except Item.DoesNotExist:
item.oxdbId = item.oxdb_id() item.oxdbId = item.oxdb_id()
item.save() item.save()
tasks.update_poster.delay(item.itemId)
else: else:
qs = Item.objects.filter(find__key='title', find__value=info['title']) qs = Item.objects.filter(find__key='title', find__value=info['title'])
if qs.count() == 1: if qs.count() == 1:
@ -127,6 +128,7 @@ def get_item(info, user=None, async=False):
item.data = item_data item.data = item_data
item.user = user item.user = user
item.save() item.save()
tasks.update_poster.delay(item.itemId)
return item return item
class Item(models.Model): class Item(models.Model):