'Create a new course mode'

def create_mode(self, mode_slug, mode_name, min_price=0, suggested_prices='', currency='usd', expiration_datetime=None):

    return CourseMode.objects.get_or_create(course_id=self.course.id, mode_display_name=mode_name, mode_slug=mode_slug, min_price=min_price, suggested_prices=suggested_prices, currency=currency, _expiration_datetime=expiration_datetime)
