@ensure_csrf_cookie
@cache_control(no_cache=True, no_store=True, must_revalidate=True)
@coach_dashboard
def ccx_schedule(request, course, ccx=None):
 if (not ccx):
  raise Http404
 schedule = get_ccx_schedule(course, ccx)
 json_schedule = json.dumps(schedule, indent=4)
 return HttpResponse(json_schedule, content_type='application/json')

@ ensure_csrf_cookie @ cache_control ( no_cache = True , no_store = True , must_revalidate = True ) @ coach_dashboard def ccx_schedule ( request , course , ccx = None ) : if ( not ccx ) : raise Http404 schedule = get_ccx_schedule ( course , ccx ) json_schedule = json . dumps ( schedule , indent = 4 ) return HttpResponse ( json_schedule , content_type = 'application/json' )
get json representation of ccx schedule .