diff options
| author | Jannis Leidel <jannis@leidel.info> | 2010-09-26 20:52:36 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2010-09-26 20:52:36 +0000 |
| commit | 2c9f0b75fb05fdc50fdff45b9274d54384cdd983 (patch) | |
| tree | 0fbae81c735c08bd4cf09463f2f1325fa8fbd1cb /docs/ref/templates | |
| parent | 94096e83e9314d960599d4d4773fe4a6329bd321 (diff) | |
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
Diffstat (limited to 'docs/ref/templates')
| -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 ========== ====================== ================================== |
