aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Law <simon.law@ecometrica.com>2012-07-24 16:28:06 -0400
committerSimon Law <simon.law@ecometrica.com>2012-07-24 16:28:06 -0400
commit566738a2f151918c00c522b3f2c742f2faf185dc (patch)
tree881cd084a23fd56613acd5a5096ed71fc5ed39dd
parenta0da923c093f79e2205529c5f12fad620f3159a7 (diff)
downloaddjango-wkhtmltopdf-566738a2f151918c00c522b3f2c742f2faf185dc.tar.gz
django-wkhtmltopdf-566738a2f151918c00c522b3f2c742f2faf185dc.tar.bz2
django-wkhtmltopdf-566738a2f151918c00c522b3f2c742f2faf185dc.zip
PDFTemplateView actually renders headers and footers now.
-rw-r--r--wkhtmltopdf/views.py5
1 files changed, 4 insertions, 1 deletions
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: