(domain, apps, fixtures, reports, keywords, ignore_models=None,
                                       is_superuser=False)
return view_models
Based on the provided data models, convert to view models, ignoring any models specified in ignore_models
    :return: list of view models (dicts) used to render elements on the release content page
Based on the provided data models, convert to view models, ignoring any models specified in ignore_models
    :return: list of view models (dicts) used to render elements on the release content page
Based on the provided data models convert to view models ignoring any models specified in ignore_models : return : list of view models ( dicts ) used to render elements on the release content page
def build_view_models_from_data_models(domain, apps, fixtures, reports, keywords, ignore_models=None,
                                       is_superuser=False):
    """
    Based on the provided data models, convert to view models, ignoring any models specified in ignore_models
    :return: list of view models (dicts) used to render elements on the release content page
    """
    view_models = []

    if is_superuser:
        superuser_view_models = build_superuser_view_models(ignore_models=ignore_models)
        view_models.extend(superuser_view_models)

    domain_level_view_models = build_domain_level_view_models(ignore_models=ignore_models)
    view_models.extend(domain_level_view_models)

    feature_flag_view_models = build_feature_flag_view_models(domain, ignore_models=ignore_models)
    view_models.extend(feature_flag_view_models)

    for app in apps.values():
        app_view_model = build_app_view_model(app)
        if app_view_model:
            view_models.append(app_view_model)

    for fixture in fixtures.values():
        fixture_view_model = build_fixture_view_model(fixture)
        if fixture_view_model:
            view_models.append(fixture_view_model)

    for report in reports.values():
        report_view_model = build_report_view_model(report)
        if report_view_model:
            view_models.append(report_view_model)

    for keyword in keywords.values():
        keyword_view_model = build_keyword_view_model(keyword)
        if keyword_view_model:
            view_models.append(keyword_view_model)

    return view_models
def build_view_models_from_data_models ( domain , apps , fixtures , reports , keywords , ignore_models = None , is_superuser = False ) : view_models = [ ] if is_superuser : superuser_view_models = build_superuser_view_models ( ignore_models = ignore_models ) view_models . extend ( superuser_view_models ) domain_level_view_models = build_domain_level_view_models ( ignore_models = ignore_models ) view_models . extend ( domain_level_view_models ) feature_flag_view_models = build_feature_flag_view_models ( domain , ignore_models = ignore_models ) view_models . extend ( feature_flag_view_models ) for app in apps . values ( ) : app_view_model = build_app_view_model ( app ) if app_view_model : view_models . append ( app_view_model ) for fixture in fixtures . values ( ) : fixture_view_model = build_fixture_view_model ( fixture ) if fixture_view_model : view_models . append ( fixture_view_model ) for report in reports . values ( ) : report_view_model = build_report_view_model ( report ) if report_view_model : view_models . append ( report_view_model ) for keyword in keywords . values ( ) : keyword_view_model = build_keyword_view_model ( keyword ) if keyword_view_model : view_models . append ( keyword_view_model ) return view_models