make sure position is float, fixes #3007
This commit is contained in:
parent
2841b65ab4
commit
fb74fcc5a7
1 changed files with 1 additions and 1 deletions
|
@ -640,7 +640,7 @@ def setPosterFrame(request, data):
|
|||
'''
|
||||
item = get_object_or_404_json(models.Item, public_id=data['id'])
|
||||
if item.editable(request.user):
|
||||
item.poster_frame = data['position']
|
||||
item.poster_frame = float(data['position'])
|
||||
item.save()
|
||||
tasks.update_poster(item.public_id)
|
||||
response = json_response()
|
||||
|
|
Loading…
Reference in a new issue