summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGeorg Bauer <gb@hugo.westfalen.de>2005-10-18 10:50:15 +0000
committerGeorg Bauer <gb@hugo.westfalen.de>2005-10-18 10:50:15 +0000
commitf99782e48eafbda4a25e1b2d7aeda59260e9e02b (patch)
tree9f1dd974404a3ebb0f9e97823371941d18d109da /docs
parent6179bb6448d1e9768a2510cfe6c14e89ce10221d (diff)
parentd5f32aa008bf12affa134d8f1d872fbd35bf2b69 (diff)
i18n: merged to [931] from trunk
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@932 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/templates.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/templates.txt b/docs/templates.txt
index 215b663634..5c52371c8a 100644
--- a/docs/templates.txt
+++ b/docs/templates.txt
@@ -399,13 +399,13 @@ Built-in tag reference
block are output::
{% if athlete_list %}
- Number of athletes: {{ athlete_list|count }}
+ Number of athletes: {{ athlete_list|length }}
{% else %}
No athletes.
{% endif %}
In the above, if ``athlete_list`` is not empty, the number of athletes will be
- displayed by the ``{{ athlete_list|count }}`` variable.
+ displayed by the ``{{ athlete_list|length }}`` variable.
As you can see, the ``if`` tag can take an option ``{% else %}`` clause that
will be displayed if the test fails.
@@ -432,8 +432,8 @@ Built-in tag reference
{% if athlete_list %}
{% if coach_list %}
- Number of athletes: {{ athlete_list|count }}.
- Number of coaches: {{ coach_list|count }}.
+ Number of athletes: {{ athlete_list|length }}.
+ Number of coaches: {{ coach_list|length }}.
{% endif %}
{% endif %}