コード例 #1
0
ファイル: model_mapper.py プロジェクト: muddery/muddery
def get_pocketable_object_models():
    """
    Query all objects' models information.
    """
    app_config = apps.get_app_config(settings.WORLD_DATA_APP)
    models = [model for model in app_config.get_models() if is_child(model, common_objects)]
    return models
コード例 #2
0
def get_pocketable_object_models():
    """
    Query all objects' models information.
    """
    app_config = apps.get_app_config(settings.WORLD_DATA_APP)
    models = [model for model in app_config.get_models() if is_child(model, common_objects)]
    return models
コード例 #3
0
ファイル: model_mapper.py プロジェクト: warmb2009/muddery
def get_additional_data_models():
    """
    Query all objects' additional data models.
    """
    app_config = apps.get_app_config(settings.WORLD_DATA_APP)
    models = [model for model in app_config.get_models() if is_child(model, BaseAdditionalData)]
    return models