aboutsummaryrefslogtreecommitdiffstats
path: root/wkhtmltopdf/views.py
diff options
context:
space:
mode:
authorMatt Lenc <mattl@incuna.com>2014-09-01 16:45:13 +0100
committerMatt Lenc <mattl@incuna.com>2014-09-01 16:45:13 +0100
commit80dd46d41a389ba4a166d5414034de27ad7e53da (patch)
tree5e4278a60ed30cd779960376de1b6472a4b6035f /wkhtmltopdf/views.py
parent9cd1fa73837e8c48bc65d24151c3f6bafcd978b4 (diff)
parent843f95258563ac75eabb4a79fef216011f320a0a (diff)
downloaddjango-wkhtmltopdf-80dd46d41a389ba4a166d5414034de27ad7e53da.tar.gz
django-wkhtmltopdf-80dd46d41a389ba4a166d5414034de27ad7e53da.tar.bz2
django-wkhtmltopdf-80dd46d41a389ba4a166d5414034de27ad7e53da.zip
Merge branch 'master' of github.com:incuna/django-wkhtmltopdf
Diffstat (limited to 'wkhtmltopdf/views.py')
-rw-r--r--wkhtmltopdf/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wkhtmltopdf/views.py b/wkhtmltopdf/views.py
index 2d91224..d5f189a 100644
--- a/wkhtmltopdf/views.py
+++ b/wkhtmltopdf/views.py
@@ -5,8 +5,8 @@ from tempfile import NamedTemporaryFile
from django.conf import settings
from django.http import HttpResponse
from django.template.response import TemplateResponse
-from django.utils.encoding import smart_str
from django.views.generic import TemplateView
+from django.utils.encoding import smart_text
from .utils import (content_disposition_filename, make_absolute_paths,
wkhtmltopdf)
@@ -72,7 +72,7 @@ class PDFTemplateResponse(TemplateResponse, PDFResponse):
context = self.resolve_context(self.context_data)
- content = smart_str(template.render(context))
+ content = smart_text(template.render(context))
content = make_absolute_paths(content)
try: