'Returns the internal Catalog API URL associated with the request\'s site.'

def get_internal_api_url(self):

    if waffle.switch_is_active('populate-multitenant-programs'):
        return helpers.get_value('COURSE_CATALOG_API_URL', settings.COURSE_CATALOG_API_URL)
    else:
        return self.internal_api_url
