From 6869f502fa54ce3a2b677464d64bc1d7a5c73b94 Mon Sep 17 00:00:00 2001 From: James Turnbull Date: Fri, 9 Mar 2012 09:27:16 +0000 Subject: Use get_template_names() to get templates Rather than directly going to self.template_name use the get_template_names() function (which returns self.template_name if not overridden). --- wkhtmltopdf/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wkhtmltopdf/views.py') 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()) -- cgit v1.2.3