From ec709959f0a2827589bc8ff532136a8e09f40acd Mon Sep 17 00:00:00 2001 From: Michel Sabchuk Date: Mon, 1 Sep 2014 12:02:37 -0300 Subject: Being more explicit about the reason for smart_unicode. --- wkhtmltopdf/views.py | 1 + 1 file changed, 1 insertion(+) 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, -- cgit v1.2.3