(excluded_apps, included_apps)
return app_list
:return: OrderedDict(app_config, model), ...)
:return: OrderedDict(app_config, model), ...)
: return : OrderedDict ( app_config model ) ... )
def _get_app_list(excluded_apps, included_apps):
    """
    :return: OrderedDict(app_config, model), ...)
    """
    app_list = OrderedDict()
    for label in APP_LABELS_WITH_FILTER_KWARGS_TO_DUMP:
        app_config, model = get_model_class(label)
        if included_apps and app_config not in included_apps:
            continue
        if app_config in excluded_apps:
            continue

        app_list_value = app_list.setdefault(app_config, [])

        if model not in app_list_value:
            app_list_value.append(model)

    return app_list
def _get_app_list ( excluded_apps , included_apps ) : app_list = OrderedDict ( ) for label in APP_LABELS_WITH_FILTER_KWARGS_TO_DUMP : app_config , model = get_model_class ( label ) if included_apps and app_config not in included_apps : continue if app_config in excluded_apps : continue app_list_value = app_list . setdefault ( app_config , [ ] ) if model not in app_list_value : app_list_value . append ( model ) return app_list