mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
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.
This commit is contained in:
committed by
Mariusz Felisiak
parent
6b736dd074
commit
b915b9f10f
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user