summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorKaren Tracey <kmtracey@gmail.com>2011-11-12 18:47:51 +0000
committerKaren Tracey <kmtracey@gmail.com>2011-11-12 18:47:51 +0000
commit3fa49c4e6ed81e8e0b84e667ec782ee87b102f35 (patch)
tree04b270d5a979455f25a65abc7eec29bddec3b7b6 /docs
parent0426962dac7e1354d1c1aba9f319151c5d222f87 (diff)
Fix #17179: Document that yesno filter's default argument is "yes,no,maybe". Thanks CarlFK and calvinspealman.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17086 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/templates/builtins.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt
index 4e5c124bd6..cddc9dd0ed 100644
--- a/docs/ref/templates/builtins.txt
+++ b/docs/ref/templates/builtins.txt
@@ -2285,7 +2285,8 @@ If ``value`` is ``Joel is a slug``, the output would be::
yesno
^^^^^
-Given a string mapping values for true, false and (optionally) None,
+Maps values for true, false and (optionally) None, to the strings "yes", "no",
+"maybe", or a custom mapping passed as a comma-separated list, and
returns one of those strings according to the value:
For example::
@@ -2295,6 +2296,7 @@ For example::
========== ====================== ==================================
Value Argument Outputs
========== ====================== ==================================
+``True`` ``yes``
``True`` ``"yeah,no,maybe"`` ``yeah``
``False`` ``"yeah,no,maybe"`` ``no``
``None`` ``"yeah,no,maybe"`` ``maybe``