summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBaptiste Mispelon <bmispelon@gmail.com>2016-08-26 11:37:20 +0200
committerTim Graham <timograham@gmail.com>2016-08-26 16:25:39 -0400
commit0cb1032982e9cdca915b69963e8c2547ec5c2fd8 (patch)
tree641925da17312267c13597d82141fb0d38a19b04 /docs
parent325dd0befea3012c42eefa061f509fbdf1b6a8aa (diff)
[1.10.x] Fixed incorrect variable name in {% regroup %} docs.
Backport of 7968bb7fada503b79d8b0e8c92aa076d60c17241 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/templates/builtins.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt
index f44dbb0a6f..791c340b6b 100644
--- a/docs/ref/templates/builtins.txt
+++ b/docs/ref/templates/builtins.txt
@@ -850,8 +850,8 @@ output (as a string) inside a variable. This is useful if you want to use
Regroups a list of alike objects by a common attribute.
-This complex tag is best illustrated by way of an example: say that "places" is
-a list of cities represented by dictionaries containing ``"name"``,
+This complex tag is best illustrated by way of an example: say that ``cities``
+is a list of cities represented by dictionaries containing ``"name"``,
``"population"``, and ``"country"`` keys:
.. code-block:: python
@@ -890,8 +890,8 @@ The following snippet of template code would accomplish this::
{% for country in country_list %}
<li>{{ country.grouper }}
<ul>
- {% for item in country.list %}
- <li>{{ item.name }}: {{ item.population }}</li>
+ {% for city in country.list %}
+ <li>{{ city.name }}: {{ city.population }}</li>
{% endfor %}
</ul>
</li>