@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('url')
def show_unit_extensions(request, course_id):
 course = get_course_by_id(SlashSeparatedCourseKey.from_deprecated_string(course_id))
 unit = find_unit(course, request.POST.get('url'))
 return JsonResponse(dump_module_extensions(course, unit))

@ 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 ( 'url' ) def show_unit_extensions ( request , course_id ) : course = get_course_by_id ( SlashSeparatedCourseKey . from_deprecated_string ( course_id ) ) unit = find_unit ( course , request . POST . get ( 'url' ) ) return JsonResponse ( dump_module_extensions ( course , unit ) )
shows all of the students which have due date extensions for the given unit .