From: Roy Revelt Date: Sat, 9 Mar 2019 11:23:39 +0000 (+0000) Subject: clarify groupby behavior in docs X-Git-Tag: 2.11.0~71^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=523be83aec6b547e05741f972724710d63c62031;p=thirdparty%2Fjinja.git clarify groupby behavior in docs --- diff --git a/jinja2/filters.py b/jinja2/filters.py index 2b45b3cc..68f90c50 100644 --- a/jinja2/filters.py +++ b/jinja2/filters.py @@ -888,18 +888,18 @@ def do_groupby(environment, value, attribute): {% endfor %} - Additionally it's possible to use tuple unpacking for the grouper and - list: + Additionally it's possible to use tuple unpacking for the grouper + (`gender` in this example) and `list`: .. sourcecode:: html+jinja - As you can see the item we're grouping by is stored in the `grouper` + As you can see the item we're grouping by is stored in the ``gender`` attribute and the `list` contains all the objects that have this grouper in common.