Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed typo in docs/templates.txt

git-svn-id: http://code.djangoproject.com/svn/django/trunk@911 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 91bd6eed062774cff93e4ffca0bdfcda2b4b0899 1 parent 63a3c72
Adrian Holovaty adrianholovaty authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 docs/templates.txt
8 docs/templates.txt
View
@@ -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 %}
Please sign in to comment.
Something went wrong with that request. Please try again.