'Add the course as a credit.
Args:
course_key(CourseKey): Identifier for the course
Returns:
CreditCourse object added'

def add_credit_course(self, course_key):

    credit_course = CreditCourse(course_key=course_key, enabled=True)
    credit_course.save()
    return credit_course
