aboutsummaryrefslogtreecommitdiffstats
path: root/wkhtmltopdf
diff options
context:
space:
mode:
Diffstat (limited to 'wkhtmltopdf')
-rw-r--r--wkhtmltopdf/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wkhtmltopdf/views.py b/wkhtmltopdf/views.py
index c26d1fc..b8e31d4 100644
--- a/wkhtmltopdf/views.py
+++ b/wkhtmltopdf/views.py
@@ -39,7 +39,7 @@ class PDFTemplateView(TemplateView):
self.context_instance = context_instance
- page_path = template_to_temp_file(self.template_name, self.get_context_data(), self.context_instance)
+ page_path = template_to_temp_file(self.get_template_names(), self.get_context_data(), self.context_instance)
pdf_kwargs = self.get_pdf_kwargs()
return self.response(wkhtmltopdf(page_path, **pdf_kwargs), self.get_filename())