'This returns site configuration value which has an org_filter that matches
what is passed in,
Args:
org (str): Course ord filter, this value will be used to filter out the correct site configuration.
name (str): Name of the key for which to return configuration value.
default: default value tp return if key is not found in the configuration
Returns:
Configuration value for the given key.'

@classmethod
def get_value_for_org(cls, org, name, default=None):

    for configuration in cls.objects.filter(values__contains=org, 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]
        if (org in course_org_filter):
            return configuration.get_value(name, default)
    return default
