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
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