From fd04e711d2a5440d7a828644ee65b88bf00c83b5 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Wed, 15 Aug 2012 16:59:09 -0500 Subject: [PATCH] Added import of force_unicode to utils/text.py For backwards compatibility with stupid people like me. Refs #18772. --- django/utils/text.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/django/utils/text.py b/django/utils/text.py index d7f3a03174..10a071510f 100644 --- a/django/utils/text.py +++ b/django/utils/text.py @@ -7,7 +7,9 @@ from gzip import GzipFile from django.utils.six.moves import html_entities from io import BytesIO -from django.utils.encoding import force_text +# Import force_unicode even though this module doesn't use it, because some +# people rely on it being here. +from django.utils.encoding import force_text, force_unicode from django.utils.functional import allow_lazy, SimpleLazyObject from django.utils import six from django.utils.translation import ugettext_lazy, ugettext as _, pgettext