Changes sync

This commit is contained in:
Mikhail Podgurskiy
2024-02-12 14:34:16 +06:00
parent 42f38ee907
commit 44a8384bb0
2 changed files with 10 additions and 4 deletions

View File

@@ -98,7 +98,7 @@ envdir=.venv310
[testenv:docs]
basepython=python3.8
basepython=python3.10
envdir = {toxworkdir}/docs
deps =
Sphinx==6.2.1

View File

@@ -13,7 +13,9 @@ def include_process_data(context, process):
flow_class = process.flow_class
template_names = (
"{}/{}/process_data.html".format(flow_class.app_label, flow_class.flow_label),
"{}/{}/process_data.html".format(
flow_class.instance.app_label, flow_class.instance.flow_label
),
"viewflow/workflow/process_data.html",
)
template = select_template(template_names)
@@ -35,9 +37,13 @@ def include_task_data(context, task):
template_names = (
"{}/{}/{}_task_data.html".format(
task.flow_task.name, flow_class.app_label, flow_class.flow_label
task.flow_task.name,
flow_class.instance.app_label,
flow_class.instance.flow_label,
),
"{}/{}/task_data.html".format(
flow_class.instance.app_label, flow_class.instance.flow_label
),
"{}/{}/task_data.html".format(flow_class.app_label, flow_class.flow_label),
"viewflow/workflow/task_data.html",
)
template = select_template(template_names)