@require_POST
@ensure_csrf_cookie
@cache_control(no_cache=True, no_store=True, must_revalidate=True)
@require_level('staff')
def get_grading_config(request, course_id):
 course_id = SlashSeparatedCourseKey.from_deprecated_string(course_id)
 course = get_course_with_access(request.user, 'staff', course_id, depth=None)
 grading_config_summary = instructor_analytics.basic.dump_grading_context(course)
 response_payload = {'course_id': course_id.to_deprecated_string(), 'grading_config_summary': grading_config_summary}
 return JsonResponse(response_payload)

@ require_POST @ ensure_csrf_cookie @ cache_control ( no_cache = True , no_store = True , must_revalidate = True ) @ require_level ( 'staff' ) def get_grading_config ( request , course_id ) : course_id = SlashSeparatedCourseKey . from_deprecated_string ( course_id ) course = get_course_with_access ( request . user , 'staff' , course_id , depth = None ) grading_config_summary = instructor_analytics . basic . dump_grading_context ( course ) response_payload = { 'course_id' : course_id . to_deprecated_string ( ) , 'grading_config_summary' : grading_config_summary } return JsonResponse ( response_payload )
respond with json which contains a html formatted grade summary .