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
Loading
Pipeline #7095 passed
...@@ -360,9 +360,8 @@ def substitutions( ...@@ -360,9 +360,8 @@ def substitutions(
wanted_day, "substitutions_by_date" wanted_day, "substitutions_by_date"
) )
template_name = "chronos/substitutions.html" return render(request, "chronos/substitutions.html", context)
else: else:
context["days"] = day_contexts 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