Lista przepustek Django do JavaScript

import json

mylistraw = [10,22,33,45]

mylist = json.dumps(mylistraw)

context = {''mylistjson': mylist}

now you can use your object in javascript.

var mylist = JSON.parse("{{mylistjson}}")
Last Air Bender