Fixed #7935 -- Corrected typo in template docs, plus slightly clarified the language. Thanks to jturnbull for the suggestion.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8154 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2008-07-30 12:37:38 +00:00
parent f7d123a731
commit 8880fdd9ee
1 changed files with 3 additions and 3 deletions

View File

@ -703,9 +703,9 @@ You can loop over a list in reverse by using ``{% for obj in list reversed %}``.
**New in Django development version** **New in Django development version**
If you need to loop over a list of lists, you can unpack the values If you need to loop over a list of lists, you can unpack the values
in eachs sub-list into a set of known names. For example, if your context contains in each sub-list into individual variables. For example, if your context
a list of (x,y) coordinates called ``points``, you could use the following contains a list of (x,y) coordinates called ``points``, you could use the
to output the list of points:: following to output the list of points::
{% for x, y in points %} {% for x, y in points %}
There is a point at {{ x }},{{ y }} There is a point at {{ x }},{{ y }}