Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #14122 -- Added example for builtin yesno template filter. Than…

…ks, idahogray.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13872 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 2c9f0b75fb05fdc50fdff45b9274d54384cdd983 1 parent 94096e8
@jezdez jezdez authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 docs/ref/templates/builtins.txt
View
4 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
========== ====================== ==================================
Please sign in to comment.
Something went wrong with that request. Please try again.