aboutsummaryrefslogtreecommitdiffstats
path: root/wkhtmltopdf
diff options
context:
space:
mode:
Diffstat (limited to 'wkhtmltopdf')
-rw-r--r--wkhtmltopdf/views.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/wkhtmltopdf/views.py b/wkhtmltopdf/views.py
index 53f11bd..561faf0 100644
--- a/wkhtmltopdf/views.py
+++ b/wkhtmltopdf/views.py
@@ -42,7 +42,10 @@ class PDFTemplateView(TemplateView):
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.filename)
+ return self.response(wkhtmltopdf(page_path, **pdf_kwargs), self.get_filename())
+
+ def get_filename(self):
+ return self.filename
def get_pdf_kwargs(self):
kwargs = {