'Enable or disable self-generated certificates for a course.
Arguments:
course_key (CourseKey): The identifier for the course.
is_enabled (boolean): Whether to enable or disable self-generated certificates.'

@classmethod
def set_enabled_for_course(cls, course_key, is_enabled):

    CertificateGenerationCourseSetting.objects.create(course_key=course_key, enabled=is_enabled)
