(configs)
return [
        config for config in configs
        if config.domain not in migrating_domains and (not config.is_static or config.domain in existing_domains)
    ]
Return a list of configs whose domain exists on this environment
Return a list of configs whose domain exists on this environment
Return a list of configs whose domain exists on this environment
def _filter_domains_to_skip(configs):
    """Return a list of configs whose domain exists on this environment"""
    domain_names = list({config.domain for config in configs if config.is_static})
    existing_domains = list(get_domain_ids_by_names(domain_names))
    migrating_domains = all_domains_with_migrations_in_progress()
    return [
        config for config in configs
        if config.domain not in migrating_domains and (not config.is_static or config.domain in existing_domains)
    ]
def _filter_domains_to_skip ( configs ) : domain_names = list ( { config . domain for config in configs if config . is_static } ) existing_domains = list ( get_domain_ids_by_names ( domain_names ) ) migrating_domains = all_domains_with_migrations_in_progress ( ) return [ config for config in configs if config . domain not in migrating_domains and ( not config . is_static or config . domain in existing_domains ) ]