'This returns all of the orgs that are considered in site configurations, This can be used,
for example, to do filtering.
Returns:
A list of all organizations present in site configuration.'

@classmethod
def get_all_orgs(cls):

    org_filter_set = set()
    for configuration in cls.objects.filter(values__contains='course_org_filter', enabled=True).all():
        course_org_filter = configuration.get_value('course_org_filter', [])
        if (not isinstance(course_org_filter, list)):
            course_org_filter = [course_org_filter]
        org_filter_set.update(course_org_filter)
    return org_filter_set
