diff options
author | Uttam Kini <ukini@vmware.com> | 2019-12-02 20:53:42 +0530 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-12-04 13:41:29 +0100 |
commit | d646e3d14fa04b5081476b84f4500c8651c167c2 (patch) | |
tree | bd6488193a2fc4f13023d033e39a5db838802b29 | |
parent | c3ee42d6635a4f53792e3c462fde3ed1ffeaad45 (diff) | |
download | django-d646e3d14fa04b5081476b84f4500c8651c167c2.tar.gz |
Fixed #31024 -- Clarified {% firstof %} tag's handling of arguments.
-rw-r--r-- | docs/ref/templates/builtins.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index 24ad8c433d..2e55b66d04 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -261,8 +261,9 @@ Sample usage:: ``firstof`` ----------- -Outputs the first argument variable that is not ``False``. Outputs nothing if -all the passed variables are ``False``. +Outputs the first argument variable that is not "false" (i.e. exists, is not +empty, is not a false boolean value, and is not a zero numeric value). Outputs +nothing if all the passed variables are "false". Sample usage:: |