diff options
Diffstat (limited to 'wkhtmltopdf/tests')
-rw-r--r-- | wkhtmltopdf/tests/tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wkhtmltopdf/tests/tests.py b/wkhtmltopdf/tests/tests.py index 983e10a..822f529 100644 --- a/wkhtmltopdf/tests/tests.py +++ b/wkhtmltopdf/tests/tests.py @@ -215,7 +215,8 @@ class TestViews(TestCase): self.assertTrue(response.has_header('Content-Disposition')) footer_template = loader.get_template(self.footer_template) - tempfile = render_to_temporary_file(footer_template, context=RequestContext(request, context)) + tempfile = render_to_temporary_file(footer_template, context=context, + request=request) tempfile.seek(0) footer_content = smart_str(tempfile.read()) footer_content = make_absolute_paths(footer_content) |