diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2008-06-26 05:24:32 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2008-06-26 05:24:32 +0000 |
| commit | 2c08986f44a52e3bbd5cb1fb9fd6b2b5a80941e3 (patch) | |
| tree | 4de2dc93a7d3151e386c5155f3f7ddb9a1719497 | |
| parent | 82d09948aef719d564a4f1535b590c7a006df6f5 (diff) | |
Fixed #7417 -- Fixed ReST error in do_if() docstring. Thanks, Richard Bell <rbell01824@earthlink.net>
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7758 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/template/defaulttags.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/django/template/defaulttags.py b/django/template/defaulttags.py index 8d4e0f3b58..01c43ee86f 100644 --- a/django/template/defaulttags.py +++ b/django/template/defaulttags.py @@ -682,8 +682,10 @@ ifnotequal = register.tag(ifnotequal) def do_if(parser, token): """ The ``{% if %}`` tag evaluates a variable, and if that variable is "true" - (i.e. exists, is not empty, and is not a false boolean value) the contents - of the block are output:: + (i.e., exists, is not empty, and is not a false boolean value), the + contents of the block are output: + + :: {% if athlete_list %} Number of athletes: {{ athlete_list|count }} |
