Django

Code

Changeset 911

Show
Ignore:
Timestamp:
10/17/05 13:08:55 (3 years ago)
Author:
adrian
Message:

Fixed typo in docs/templates.txt

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/templates.txt

    r905 r911  
    400400 
    401401        {% if athlete_list %} 
    402             Number of athletes: {{ athlete_list|count }} 
     402            Number of athletes: {{ athlete_list|length }} 
    403403        {% else %} 
    404404            No athletes. 
     
    406406 
    407407    In the above, if ``athlete_list`` is not empty, the number of athletes will be 
    408     displayed by the ``{{ athlete_list|count }}`` variable. 
     408    displayed by the ``{{ athlete_list|length }}`` variable. 
    409409 
    410410    As you can see, the ``if`` tag can take an option ``{% else %}`` clause that 
     
    433433        {% if athlete_list %} 
    434434            {% if coach_list %} 
    435                 Number of athletes: {{ athlete_list|count }}. 
    436                 Number of coaches: {{ coach_list|count }}. 
     435                Number of athletes: {{ athlete_list|length }}. 
     436                Number of coaches: {{ coach_list|length }}. 
    437437            {% endif %} 
    438438        {% endif %}