Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added import of force_unicode to utils/

For backwards compatibility with stupid people like me. Refs #18772.
  • Loading branch information...
commit fd04e711d2a5440d7a828644ee65b88bf00c83b5 1 parent 27d16a3
@adrianholovaty adrianholovaty authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 django/utils/
4 django/utils/
@@ -7,7 +7,9 @@
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
Please sign in to comment.
Something went wrong with that request. Please try again.