aboutsummaryrefslogtreecommitdiffstats
path: root/wkhtmltopdf/views.py
diff options
context:
space:
mode:
authorCharlie Denton <charlie@meshy.co.uk>2012-02-24 09:49:19 +0000
committerCharlie Denton <charlie@meshy.co.uk>2012-02-24 09:49:19 +0000
commit1bf53ebfee2c911ed3aeca602c4e69ed6fb3bdce (patch)
treedab22c99f7eddcdef121e046fbcf3801415b27b4 /wkhtmltopdf/views.py
parentbb3e0dbbf1cc60d5413acbf4b1eacc691cffc919 (diff)
downloaddjango-wkhtmltopdf-1bf53ebfee2c911ed3aeca602c4e69ed6fb3bdce.tar.gz
django-wkhtmltopdf-1bf53ebfee2c911ed3aeca602c4e69ed6fb3bdce.tar.bz2
django-wkhtmltopdf-1bf53ebfee2c911ed3aeca602c4e69ed6fb3bdce.zip
Restore *args to PDFTemplateView.
Diffstat (limited to 'wkhtmltopdf/views.py')
-rw-r--r--wkhtmltopdf/views.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/wkhtmltopdf/views.py b/wkhtmltopdf/views.py
index c92b117..c26d1fc 100644
--- a/wkhtmltopdf/views.py
+++ b/wkhtmltopdf/views.py
@@ -33,15 +33,13 @@ class PDFTemplateView(TemplateView):
margin_top = 0
response = PDFResponse
- def get(self, request, context_instance=None, **kwargs):
+ def get(self, request, context_instance=None, *args, **kwargs):
if request.GET.get('as', '') == 'html':
- return super(PDFTemplateView, self).get(request, **kwargs)
+ return super(PDFTemplateView, self).get(request, *args, **kwargs)
- # Save arguments onto class (would have been done in super-class)
self.context_instance = context_instance
page_path = template_to_temp_file(self.template_name, self.get_context_data(), self.context_instance)
-
pdf_kwargs = self.get_pdf_kwargs()
return self.response(wkhtmltopdf(page_path, **pdf_kwargs), self.get_filename())