(config_id, domain)
return any(
        getattr(getattr(filter_, 'choice_provider', None), 'location_safe', False) or
        getattr(filter_, 'location_filter', False)
        for filter_ in report.ui_filters
    )
check that the report has at least one location based filter or
    location choice provider filter
check that the report has at least one location based filter or
    location choice provider filter
check that the report has at least one location based filter or location choice provider filter
def report_has_location_filter(config_id, domain):
    """check that the report has at least one location based filter or
    location choice provider filter
    """
    if not (config_id and domain):
        return False
    report, _ = get_report_config(config_id=config_id, domain=domain)
    return any(
        getattr(getattr(filter_, 'choice_provider', None), 'location_safe', False) or
        getattr(filter_, 'location_filter', False)
        for filter_ in report.ui_filters
    )
def report_has_location_filter ( config_id , domain ) : if not ( config_id and domain ) : return False report , _ = get_report_config ( config_id = config_id , domain = domain ) return any ( getattr ( getattr ( filter_ , 'choice_provider' , None ) , 'location_safe' , False ) or getattr ( filter_ , 'location_filter' , False ) for filter_ in report . ui_filters )