fix poster after upload

This commit is contained in:
j 2013-07-03 19:18:02 +02:00
parent 601775eb56
commit 7aaddb29a9

View file

@ -201,6 +201,7 @@ def addMedia(request):
} }
i.user = request.user i.user = request.user
i.save() i.save()
i.make_poster(True)
f = models.File(oshash=oshash, item=i) f = models.File(oshash=oshash, item=i)
f.path = data.get('filename', 'Untitled') f.path = data.get('filename', 'Untitled')
extension = f.path.split('.') extension = f.path.split('.')