def get_ccx_for_coach(course, coach):
 ccxs = CustomCourseForEdX.objects.filter(course_id=course.id, coach=coach)
 if ccxs.exists():
  return ccxs[0]
 return None

def get_ccx_for_coach ( course , coach ) : ccxs = CustomCourseForEdX . objects . filter ( course_id = course . id , coach = coach ) if ccxs . exists ( ) : return ccxs [ 0 ] return None
looks to see if user is coach of a ccx for this course .