(master_domain, report_id)
return linked_domains
A dict of all downstream domains with and if this is already linked to `report_id`
A dict of all downstream domains with and if this is already linked to `report_id`
A dict of all downstream domains with and if this is already linked to report_id
def linked_downstream_reports_by_domain(master_domain, report_id):
    """A dict of all downstream domains with and if this is already linked to `report_id`
    """
    from corehq.apps.linked_domain.dbaccessors import get_linked_domains
    linked_domains = {}
    for domain_link in get_linked_domains(master_domain):
        linked_domains[domain_link.linked_domain] = any(
            r for r in get_linked_report_configs(domain_link.linked_domain, report_id)
        )
    return linked_domains
def linked_downstream_reports_by_domain ( master_domain , report_id ) : from corehq . apps . linked_domain . dbaccessors import get_linked_domains linked_domains = { } for domain_link in get_linked_domains ( master_domain ) : linked_domains [ domain_link . linked_domain ] = any ( r for r in get_linked_report_configs ( domain_link . linked_domain , report_id ) ) return linked_domains