def models_dict_to_list(models):
    """
    Given a models dict containing subapp names as keys and models as a list of values
    return an aggregated list of all models
    """
    
    all_models = []
    
    if isinstance(models, dict):
        
        for _, app_models in list(models.items()):
            all_models.extend(app_models)

    else:
        all_models = models

    return all_models