def is_prerequisite(course_key, prereq_content_key):
 return (get_gating_milestone(course_key, prereq_content_key, 'fulfills') is not None)

def is_prerequisite ( course_key , prereq_content_key ) : return ( get_gating_milestone ( course_key , prereq_content_key , 'fulfills' ) is not None )
returns true if there is at least one coursecontentmilestone which the given course content fulfills arguments: course_key : the course key prereq_content_key : the prerequisite content usage key returns: bool: true if the course content fulfills a coursecontentmilestone .