'Returns True, if course is paid'

def is_paid_course(self):

    paid_course = CourseMode.is_white_label(self.course_id)
    if (paid_course or CourseMode.is_professional_slug(self.mode)):
        return True
    return False
