summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-08-12 14:39:48 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-08-12 14:44:41 +0200
commit4e68e861533846010e372ecf58e3cd0439081754 (patch)
tree5611cdf2a7af452e08f5bf21f6faa03fa5320eb2 /docs
parentd4a0b27838c815af87698920cc4db7d2afd6f05b (diff)
[py3] Deprecated StrAndUnicode.
This mix-in is superseded by the @python_2_unicode_compatible decorator.
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/1.5.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/releases/1.5.txt b/docs/releases/1.5.txt
index f789ebde40..4aeb61af94 100644
--- a/docs/releases/1.5.txt
+++ b/docs/releases/1.5.txt
@@ -273,3 +273,10 @@ our own copy of ``simplejson``. You can safely change any use of
The :func:`~django.utils.itercompat.product` function has been deprecated. Use
the built-in :func:`itertools.product` instead.
+
+``django.utils.encoding.StrAndUnicode``
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+The :class:`~django.utils.encoding.StrAndUnicode` mix-in has been deprecated.
+Define a ``__str__`` method and apply the
+:func:`~django.utils.encoding.python_2_unicode_compatible` decorator instead.