'Mark the course as a credit'

def add_credit_course(self, course_key=None, enabled=True):

    course_key = (course_key or self.course_key)
    credit_course = CreditCourse.objects.create(course_key=course_key, enabled=enabled)
    CreditProvider.objects.get_or_create(provider_id=self.PROVIDER_ID, display_name=self.PROVIDER_NAME, provider_url=self.PROVIDER_URL, provider_status_url=self.PROVIDER_STATUS_URL, provider_description=self.PROVIDER_DESCRIPTION, enable_integration=self.ENABLE_INTEGRATION, fulfillment_instructions=self.FULFILLMENT_INSTRUCTIONS, thumbnail_url=self.THUMBNAIL_URL)
    return credit_course
