Django Class Based Views to generate Ajax charts js parameters.