From 3c824401a887e3311afcb782f2f89235eecb2d29 Mon Sep 17 00:00:00 2001 From: Jonathan Weth <git@jonathanweth.de> Date: Fri, 16 Apr 2021 10:42:57 +0200 Subject: [PATCH] Use render_pdf for the substitutions print view, too --- aleksis/apps/chronos/views.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/aleksis/apps/chronos/views.py b/aleksis/apps/chronos/views.py index 0962eccb..b161645d 100644 --- a/aleksis/apps/chronos/views.py +++ b/aleksis/apps/chronos/views.py @@ -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) -- GitLab