diff options
| author | Jannis Leidel <jannis@leidel.info> | 2010-09-26 20:53:45 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2010-09-26 20:53:45 +0000 |
| commit | 7b556c2f1bb6e82f5e2a8cd353be3d8f74ba2a11 (patch) | |
| tree | a918d732fba3aa21f81b9b6a0e811d3040c0d7ab | |
| parent | 4d966ee2021e0ba982dbb0407128aec21480014e (diff) | |
[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
| -rw-r--r-- | docs/ref/templates/builtins.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index 85c0b6dc26..a20ab170c0 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -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 ========== ====================== ================================== |
