'This allow to change the default behavior of inline discussions cohorting. By
setting this to \'True\', all inline discussions are cohorted. The default value is
now `False`, meaning that inline discussions are not cohorted unless their discussion IDs
are specifically listed as cohorted.
Note: No longer used except to get the initial value when cohorts are first enabled on a course
(and for migrating old courses). See openedx.core.djangoapps.course_groups.models.CourseCohortSettings.'

@property
def always_cohort_inline_discussions(self):

    config = self.cohort_config
    if (config is None):
        return False
    return bool(config.get('always_cohort_inline_discussions', False))
