make sure position is float, fixes #3007

This commit is contained in:
j 2017-02-17 15:40:53 +01:00
parent 2841b65ab4
commit fb74fcc5a7

View file

@ -640,7 +640,7 @@ def setPosterFrame(request, data):
''' '''
item = get_object_or_404_json(models.Item, public_id=data['id']) item = get_object_or_404_json(models.Item, public_id=data['id'])
if item.editable(request.user): if item.editable(request.user):
item.poster_frame = data['position'] item.poster_frame = float(data['position'])
item.save() item.save()
tasks.update_poster(item.public_id) tasks.update_poster(item.public_id)
response = json_response() response = json_response()