From dc9f1fb46f587f2b8dbbfc440a72944b183c0fcd Mon Sep 17 00:00:00 2001 From: Marc Tamlyn Date: Fri, 27 Jul 2012 16:33:39 +0100 Subject: .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. --- wkhtmltopdf/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3