@handle_dashboard_error
@require_POST
@ensure_csrf_cookie
@cache_control(no_cache=True, no_store=True, must_revalidate=True)
@require_level('staff')
@require_post_params('student')
def show_student_extensions(request, course_id):
 student = require_student_from_identifier(request.POST.get('student'))
 course = get_course_by_id(SlashSeparatedCourseKey.from_deprecated_string(course_id))
 return JsonResponse(dump_student_extensions(course, student))

@ handle_dashboard_error @ require_POST @ ensure_csrf_cookie @ cache_control ( no_cache = True , no_store = True , must_revalidate = True ) @ require_level ( 'staff' ) @ require_post_params ( 'student' ) def show_student_extensions ( request , course_id ) : student = require_student_from_identifier ( request . POST . get ( 'student' ) ) course = get_course_by_id ( SlashSeparatedCourseKey . from_deprecated_string ( course_id ) ) return JsonResponse ( dump_student_extensions ( course , student ) )
shows all of the due date extensions granted to a particular student in a particular course .