def get_required_content(course_key, gated_content_key):
 milestone = get_gating_milestone(course_key, gated_content_key, 'requires')
 if milestone:
  return (milestone.get('namespace', '').replace(GATING_NAMESPACE_QUALIFIER, ''), milestone.get('requirements', {}).get('min_score'))
 else:
  return (None, None)

def get_required_content ( course_key , gated_content_key ) : milestone = get_gating_milestone ( course_key , gated_content_key , 'requires' ) if milestone : return ( milestone . get ( 'namespace' , '' ) . replace ( GATING_NAMESPACE_QUALIFIER , '' ) , milestone . get ( 'requirements' , { } ) . get ( 'min_score' ) ) else : return ( None , None )
queries milestones subsystem to see if the specified course is gated on one or more milestones .