update poster after uploading frames

This commit is contained in:
j 2011-11-29 15:14:03 +01:00
parent 4d8879e02d
commit 7bbee07012

View file

@ -147,6 +147,8 @@ def upload(request):
fr, created = models.Frame.objects.get_or_create(file=f, position=position) fr, created = models.Frame.objects.get_or_create(file=f, position=position)
fr.frame.save(name, frame) fr.frame.save(name, frame)
f.item.select_frame() f.item.select_frame()
f.item.save()
item.tasks.update_poster.delay(f.item.itemId)
else: else:
response = json_response(status=403, text='permissino denied') response = json_response(status=403, text='permissino denied')
if 'file' in request.FILES: if 'file' in request.FILES: