From 566738a2f151918c00c522b3f2c742f2faf185dc Mon Sep 17 00:00:00 2001 From: Simon Law Date: Tue, 24 Jul 2012 16:28:06 -0400 Subject: PDFTemplateView actually renders headers and footers now. --- wkhtmltopdf/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'wkhtmltopdf') diff --git a/wkhtmltopdf/views.py b/wkhtmltopdf/views.py index bbb6e7d..bd1da13 100644 --- a/wkhtmltopdf/views.py +++ b/wkhtmltopdf/views.py @@ -201,7 +201,10 @@ class PDFTemplateView(TemplateView): if cmd_options is None: cmd_options = self.get_cmd_options() return super(PDFTemplateView, self).render_to_response( - context=context, filename=filename, cmd_options=cmd_options, + context=context, filename=filename, + header_template=self.header_template, + footer_template=self.footer_template, + cmd_options=cmd_options, **response_kwargs ) else: -- cgit v1.2.3