aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Sabchuk <michel@turbosys.com.br>2014-09-01 12:02:37 -0300
committerMichel Sabchuk <michel@turbosys.com.br>2014-09-01 12:02:37 -0300
commitec709959f0a2827589bc8ff532136a8e09f40acd (patch)
tree620418173d404b7d8fca5afd1ecb5bbefebf150f
parent04530dcce4489c720cf02cdfb906df0cfe6f0fed (diff)
downloaddjango-wkhtmltopdf-ec709959f0a2827589bc8ff532136a8e09f40acd.tar.gz
django-wkhtmltopdf-ec709959f0a2827589bc8ff532136a8e09f40acd.tar.bz2
django-wkhtmltopdf-ec709959f0a2827589bc8ff532136a8e09f40acd.zip
Being more explicit about the reason for smart_unicode.
-rw-r--r--wkhtmltopdf/views.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/wkhtmltopdf/views.py b/wkhtmltopdf/views.py
index 882f4fa..949ae38 100644
--- a/wkhtmltopdf/views.py
+++ b/wkhtmltopdf/views.py
@@ -9,6 +9,7 @@ from django.views.generic import TemplateView
try:
from django.utils.encoding import smart_text
except ImportError:
+ # Django 1.4 doesn't have smart_text, we must smart_unicode in place
from django.utils.encoding import smart_unicode as smart_text
from .utils import (content_disposition_filename, make_absolute_paths,