From 218f6d86a65a70be5a41874b5e25e43e8e4959a6 Mon Sep 17 00:00:00 2001
From: Henrik Levkowetz <henrik@levkowetz.com>
Date: Thu, 27 Jun 2019 18:04:50 +0000
Subject: [PATCH] Replaced smart_unicode() with smart_text()  - Legacy-Id:
 16311

---
 ietf/dbtemplate/template.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ietf/dbtemplate/template.py b/ietf/dbtemplate/template.py
index 624aab3c9..efb3b06b4 100644
--- a/ietf/dbtemplate/template.py
+++ b/ietf/dbtemplate/template.py
@@ -8,7 +8,7 @@ import debug                            # pyflakes:ignore
 from django.template.loaders.base import Loader as BaseLoader
 from django.template.base import Template as DjangoTemplate, TemplateEncodingError
 from django.template.exceptions import TemplateDoesNotExist
-from django.utils.encoding import smart_unicode
+from django.utils.encoding import smart_text
 
 from ietf.dbtemplate.models import DBTemplate
 
@@ -21,7 +21,7 @@ class Template(object):
 
     def __init__(self, template_string, origin=None, name='<Unknown Template>'):
         try:
-            template_string = smart_unicode(template_string)
+            template_string = smart_text(template_string)
         except UnicodeDecodeError:
             raise TemplateEncodingError("Templates can only be constructed from unicode or UTF-8 strings.")
         self.template_string = string.Template(template_string)