Fixed #14122 -- Added example for builtin yesno template filter. Thanks, idahogray.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13872 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
94096e83e9
commit
2c9f0b75fb
|
@ -2058,6 +2058,10 @@ yesno
|
||||||
Given a string mapping values for true, false and (optionally) None,
|
Given a string mapping values for true, false and (optionally) None,
|
||||||
returns one of those strings according to the value:
|
returns one of those strings according to the value:
|
||||||
|
|
||||||
|
For example::
|
||||||
|
|
||||||
|
{{ value|yesno:"yeah,no,maybe" }}
|
||||||
|
|
||||||
========== ====================== ==================================
|
========== ====================== ==================================
|
||||||
Value Argument Outputs
|
Value Argument Outputs
|
||||||
========== ====================== ==================================
|
========== ====================== ==================================
|
||||||
|
|
Loading…
Reference in New Issue