aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Tamlyn <marc.tamlyn@gmail.com>2012-07-27 16:33:39 +0100
committerMarc Tamlyn <marc.tamlyn@gmail.com>2012-07-27 16:33:39 +0100
commitdc9f1fb46f587f2b8dbbfc440a72944b183c0fcd (patch)
tree85eac0cef0a362f81cf3c4067bde2d166899fed8
parent111c43882d156d4dd307e9f9c3298839c7955e7a (diff)
downloaddjango-wkhtmltopdf-dc9f1fb46f587f2b8dbbfc440a72944b183c0fcd.tar.gz
django-wkhtmltopdf-dc9f1fb46f587f2b8dbbfc440a72944b183c0fcd.tar.bz2
django-wkhtmltopdf-dc9f1fb46f587f2b8dbbfc440a72944b183c0fcd.zip
.html default suffix for render_to_temporary_file
It's expected by wkhtmltopdf that the files should end in .html, so it may as well be the default.
-rw-r--r--wkhtmltopdf/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wkhtmltopdf/views.py b/wkhtmltopdf/views.py
index 6668474..f7e2feb 100644
--- a/wkhtmltopdf/views.py
+++ b/wkhtmltopdf/views.py
@@ -66,7 +66,7 @@ class PDFTemplateResponse(TemplateResponse, PDFResponse):
self.override_settings = override_settings
def render_to_temporary_file(self, template_name, mode='w+b', bufsize=-1,
- suffix='', prefix='tmp', dir=None,
+ suffix='.html', prefix='tmp', dir=None,
delete=True):
template = self.resolve_template(template_name)