diff options
| author | Tim Graham <timograham@gmail.com> | 2019-02-05 09:19:49 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2019-02-06 14:12:06 -0500 |
| commit | d55e88292723764a16f0689c73bc7e739dfa6047 (patch) | |
| tree | b089db0867f0439b7998cf03c7cd0de28f4362f9 /docs/ref | |
| parent | 3bb6a4390c0a57da991fcb1c0642b9b3fccff751 (diff) | |
Refs #27753 -- Deprecated django.utils.encoding.force_text() and smart_text().
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/utils.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt index 62625cf62c..9621db525b 100644 --- a/docs/ref/utils.txt +++ b/docs/ref/utils.txt @@ -232,11 +232,15 @@ The functions defined in this module share the following properties: .. function:: smart_text(s, encoding='utf-8', strings_only=False, errors='strict') + .. deprecated:: 3.0 + Alias of :func:`force_str` for backwards compatibility, especially in code that supports Python 2. .. function:: force_text(s, encoding='utf-8', strings_only=False, errors='strict') + .. deprecated:: 3.0 + Alias of :func:`force_str` for backwards compatibility, especially in code that supports Python 2. |
