From 14ef92fa9e87a77cd3642235387e6f683048046b Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Tue, 12 Sep 2023 21:34:40 +0200 Subject: Refs #33864 -- Removed length_is template filter per deprecation timeline. --- docs/ref/templates/builtins.txt | 18 ------------------ docs/releases/5.1.txt | 2 ++ 2 files changed, 2 insertions(+), 18 deletions(-) (limited to 'docs') diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index 4798663bf0..e0e06dafe8 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -2161,24 +2161,6 @@ If ``value`` is ``['a', 'b', 'c', 'd']`` or ``"abcd"``, the output will be The filter returns ``0`` for an undefined variable. -.. templatefilter:: length_is - -``length_is`` -------------- - -.. deprecated:: 4.2 - -Returns ``True`` if the value's length is the argument, or ``False`` otherwise. - -For example: - -.. code-block:: html+django - - {{ value|length_is:"4" }} - -If ``value`` is ``['a', 'b', 'c', 'd']`` or ``"abcd"``, the output will be -``True``. - .. templatefilter:: linebreaks ``linebreaks`` diff --git a/docs/releases/5.1.txt b/docs/releases/5.1.txt index c8d6f5f3f6..c6c4e2217d 100644 --- a/docs/releases/5.1.txt +++ b/docs/releases/5.1.txt @@ -254,3 +254,5 @@ to remove usage of these features. * The ``BaseUserManager.make_random_password()`` method is removed. * The model's ``Meta.index_together`` option is removed. + +* The ``length_is`` template filter is removed. -- cgit v1.3