(domain, excludes, includes, limit_to_db=None)
:param domain: domain name to filter with
    :param app_list: List of (app_config, model_class) tuples to dump
    :param excluded_models: List of model_class classes to exclude
    :return: generator yielding query sets
:param domain: domain name to filter with
    :param app_list: List of (app_config, model_class) tuples to dump
    :param excluded_models: List of model_class classes to exclude
    :return: generator yielding query sets
: param domain : domain name to filter with : param app_list : List of ( app_config model_class ) tuples to dump : param excluded_models : List of model_class classes to exclude : return : generator yielding query sets
def get_model_iterator_builders_to_dump(domain, excludes, includes, limit_to_db=None):
    """
    :param domain: domain name to filter with
    :param app_list: List of (app_config, model_class) tuples to dump
    :param excluded_models: List of model_class classes to exclude
    :return: generator yielding query sets
    """
    excluded_apps, excluded_models = get_apps_and_models(excludes)
    included_apps, included_models = get_apps_and_models(includes)
    app_config_models = _get_app_list(excluded_apps, included_apps)

    # Collate the objects to be serialized.
    for model_class in serializers.sort_dependencies(list(app_config_models.items())):
        if included_models and model_class not in included_models:
            continue
        if model_class in excluded_models:
            continue

        iterator_builders = APP_LABELS_WITH_FILTER_KWARGS_TO_DUMP[get_model_label(model_class)]
        for model_class, builder in get_all_model_iterators_builders_for_domain(
            model_class, domain, iterator_builders, limit_to_db=limit_to_db
        ):
            yield model_class, builder
def get_model_iterator_builders_to_dump ( domain , excludes , includes , limit_to_db = None ) : excluded_apps , excluded_models = get_apps_and_models ( excludes ) included_apps , included_models = get_apps_and_models ( includes ) app_config_models = _get_app_list ( excluded_apps , included_apps ) # Collate the objects to be serialized. for model_class in serializers . sort_dependencies ( list ( app_config_models . items ( ) ) ) : if included_models and model_class not in included_models : continue if model_class in excluded_models : continue iterator_builders = APP_LABELS_WITH_FILTER_KWARGS_TO_DUMP [ get_model_label ( model_class ) ] for model_class , builder in get_all_model_iterators_builders_for_domain ( model_class , domain , iterator_builders , limit_to_db = limit_to_db ) : yield model_class , builder