Commit 7b556c2f authored by Jannis Leidel's avatar Jannis Leidel
Browse files

[1.2.X] Fixed #14122 -- Added example for builtin yesno template filter. Thanks, idahogray.

Backport from trunk (r13872).

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13873 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 4d966ee2
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2058,6 +2058,10 @@ yesno
Given a string mapping values for true, false and (optionally) None,
returns one of those strings according to the value:

For example::

    {{ value|yesno:"yeah,no,maybe" }}

==========  ======================  ==================================
Value       Argument                Outputs
==========  ======================  ==================================