mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
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
This commit is contained in:
parent
0426962dac
commit
3fa49c4e6e
2 changed files with 4 additions and 1 deletions
|
@ -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``
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue