mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
[py3] Deprecated StrAndUnicode.
This mix-in is superseded by the @python_2_unicode_compatible decorator.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user