diff options
Diffstat (limited to 'wkhtmltopdf/views.py')
-rw-r--r-- | wkhtmltopdf/views.py | 1 |
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, |