From 523be83aec6b547e05741f972724710d63c62031 Mon Sep 17 00:00:00 2001 From: Roy Revelt Date: Sat, 9 Mar 2019 11:23:39 +0000 Subject: [PATCH] clarify groupby behavior in docs --- jinja2/filters.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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. -- 2.47.3