diff options
Diffstat (limited to 'docs/releases/4.2.txt')
| -rw-r--r-- | docs/releases/4.2.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/releases/4.2.txt b/docs/releases/4.2.txt index 413e9a9471..0846f05e2c 100644 --- a/docs/releases/4.2.txt +++ b/docs/releases/4.2.txt @@ -317,3 +317,18 @@ Miscellaneous for using Python's :py:mod:`secrets` module to generate passwords. * The ``AlterIndexTogether`` migration operation is deprecated. + +* The ``length_is`` template filter is deprecated in favor of :tfilter:`length` + and the ``==`` operator within an :ttag:`{% if %}<if>` tag. For example + + .. code-block:: html+django + + {% if value|length == 4 %}…{% endif %} + {% if value|length == 4 %}True{% else %}False{% endif %} + + instead of: + + .. code-block:: html+django + + {% if value|length_is:4 %}…{% endif %} + {{ value|length_is:4 }} |
