diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/templates/builtins.txt | 5 | ||||
| -rw-r--r-- | docs/releases/1.8.txt | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index 9d4093e4da..e66c583720 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -1688,6 +1688,11 @@ For example:: If ``value`` is ``['a', 'b', 'c', 'd']`` or ``"abcd"``, the output will be ``4``. +.. versionchanged:: 1.8 + + The filter returns ``0`` for an undefined variable. Previously, it returned + an empty string. + .. templatefilter:: length_is length_is diff --git a/docs/releases/1.8.txt b/docs/releases/1.8.txt index 31f4fb2cbb..1345e55a9a 100644 --- a/docs/releases/1.8.txt +++ b/docs/releases/1.8.txt @@ -267,6 +267,9 @@ Miscellaneous * ``django.contrib.gis`` dropped support for GEOS 3.1 and GDAL 1.6. +* The :tfilter:`length` template filter now returns ``0`` for an undefined + variable, rather than an empty string. + .. _deprecated-features-1.8: Features deprecated in 1.8 |
