From b915b9f10f1110bf6b8468060ce9753ff78ffb07 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Wed, 24 Apr 2019 06:10:28 -0700 Subject: 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. --- docs/internals/deprecation.txt | 2 ++ docs/releases/3.0.txt | 4 ++++ 2 files changed, 6 insertions(+) (limited to 'docs') 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 -- cgit v1.3