'Exclude any courses defined outside the current org.'

def exclude_dictionary(self, **kwargs):

    exclude_dictionary = super(LmsSearchFilterGenerator, self).exclude_dictionary(**kwargs)
    course_org_filter = configuration_helpers.get_current_site_orgs()
    if (not course_org_filter):
        org_filter_out_set = configuration_helpers.get_all_orgs()
        if org_filter_out_set:
            exclude_dictionary['org'] = list(org_filter_out_set)
    return exclude_dictionary
