Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit 3fa49c4e6ed81e8e0b84e667ec782ee87b102f35 1 parent 0426962
Karen Tracey authored November 12, 2011
1  AUTHORS
@@ -473,6 +473,7 @@ answer newbie questions, and generally made Django that much better:
473 473
     Leo Soto <leo.soto@gmail.com>
474 474
     Wiliam Alves de Souza <wiliamsouza83@gmail.com>
475 475
     Don Spaulding <donspauldingii@gmail.com>
  476
+    Calvin Spealman <ironfroggy@gmail.com>
476 477
     Bjørn Stabell <bjorn@exoweb.net>
477 478
     Georgi Stanojevski <glisha@gmail.com>
478 479
     starrynight <cmorgh@gmail.com>
4  docs/ref/templates/builtins.txt
@@ -2285,7 +2285,8 @@ If ``value`` is ``Joel is a slug``, the output would be::
2285 2285
 yesno
2286 2286
 ^^^^^
2287 2287
 
2288  
-Given a string mapping values for true, false and (optionally) None,
  2288
+Maps values for true, false and (optionally) None, to the strings "yes", "no",
  2289
+"maybe", or a custom mapping passed as a comma-separated list, and
2289 2290
 returns one of those strings according to the value:
2290 2291
 
2291 2292
 For example::
@@ -2295,6 +2296,7 @@ For example::
2295 2296
 ==========  ======================  ==================================
2296 2297
 Value       Argument                Outputs
2297 2298
 ==========  ======================  ==================================
  2299
+``True``                            ``yes``
2298 2300
 ``True``    ``"yeah,no,maybe"``     ``yeah``
2299 2301
 ``False``   ``"yeah,no,maybe"``     ``no``
2300 2302
 ``None``    ``"yeah,no,maybe"``     ``maybe``

0 notes on commit 3fa49c4

Please sign in to comment.
Something went wrong with that request. Please try again.