From ffe4686114dde472312bf588988d7b605a8ea68d Mon Sep 17 00:00:00 2001 From: Mirek Simek Date: Sun, 29 Oct 2023 20:56:00 +0100 Subject: [PATCH] Fixed service config component imports --- .../invenio/templates/service_config.py.jinja2 | 3 +++ setup.cfg | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/oarepo_model_builder/invenio/templates/service_config.py.jinja2 b/oarepo_model_builder/invenio/templates/service_config.py.jinja2 index 5950f772..6d8e2fe6 100644 --- a/oarepo_model_builder/invenio/templates/service_config.py.jinja2 +++ b/oarepo_model_builder/invenio/templates/service_config.py.jinja2 @@ -4,6 +4,9 @@ {{ vars.permissions.class|imports }} {{ vars.marshmallow.class|imports }} {{ vars.search_options.class|imports }} +{% for c in vars.service_config.components %} +{{ c|generate_import }} +{% endfor %} class {{ vars.service_config|class_header }}: diff --git a/setup.cfg b/setup.cfg index 846e19eb..e986d971 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = oarepo-model-builder -version = 4.0.58 +version = 4.0.59 description = A utility library that generates OARepo required data model files from a JSON specification file authors = Miroslav Bauer , Miroslav Simek readme = README.md