make poster for new items
This commit is contained in:
parent
fbeede2b71
commit
c31647358e
1 changed files with 2 additions and 0 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue