Skip to content
Snippets Groups Projects
Commit 3c824401 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Use render_pdf for the substitutions print view, too

parent 8a81a899
No related branches found
No related tags found
1 merge request!77Resolve "PDF export for timetables"
Pipeline #7095 passed
......@@ -360,9 +360,8 @@ def substitutions(
wanted_day, "substitutions_by_date"
)
template_name = "chronos/substitutions.html"
return render(request, "chronos/substitutions.html", context)
else:
context["days"] = day_contexts
template_name = "chronos/substitutions_print.html"
return render(request, template_name, context)
return render_pdf(request, "chronos/substitutions_print.html", context)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment