summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2019-04-24 06:10:28 -0700
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-05-08 08:00:59 +0200
commitb915b9f10f1110bf6b8468060ce9753ff78ffb07 (patch)
tree3551135abdf36f1e3fbf0f4f3d1d73ecec4f5a86 /docs
parent6b736dd0747dc77473f1f7b691c196ef5912d7dd (diff)
Refs #27753 -- Deprecated django.utils.text.unescape_entities().
The function was undocumented and only required for compatibility with Python 2. Code should use Python's html.unescape() that was added in Python 3.4.
Diffstat (limited to 'docs')
-rw-r--r--docs/internals/deprecation.txt2
-rw-r--r--docs/releases/3.0.txt4
2 files changed, 6 insertions, 0 deletions
diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt
index 93b6a04594..7020a3341a 100644
--- a/docs/internals/deprecation.txt
+++ b/docs/internals/deprecation.txt
@@ -30,6 +30,8 @@ details on these changes.
* ``alias=None`` will be required in the signature of
``django.db.models.Expression.get_group_by_cols()`` subclasses.
+* ``django.utils.text.unescape_entities()`` will be removed.
+
.. _deprecation-removed-in-3.1:
3.1
diff --git a/docs/releases/3.0.txt b/docs/releases/3.0.txt
index 1c222cfe7a..f43a11938a 100644
--- a/docs/releases/3.0.txt
+++ b/docs/releases/3.0.txt
@@ -411,6 +411,10 @@ Miscellaneous
* ``alias=None`` is added to the signature of
:meth:`.Expression.get_group_by_cols`.
+* ``django.utils.text.unescape_entities()`` is deprecated in favor of
+ :func:`html.unescape`. Note that unlike ``unescape_entities()``,
+ ``html.unescape()`` evaluates lazy strings immediately.
+
.. _removed-features-3.0:
Features removed in 3.0