Пример #1
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
Пример #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
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