diff options
| author | Baptiste Mispelon <bmispelon@gmail.com> | 2016-08-26 11:39:06 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-08-26 16:59:21 -0400 |
| commit | 61b45dff6be3a2c85adac73acf5fe0de71f9ecda (patch) | |
| tree | 861f107b2ff26cee60e1970c320d6d929bc25767 /docs/releases | |
| parent | 7968bb7fada503b79d8b0e8c92aa076d60c17241 (diff) | |
Fixed #27126 -- Made {% regroup %} return a namedtuple to ease unpacking.
Diffstat (limited to 'docs/releases')
| -rw-r--r-- | docs/releases/1.11.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/releases/1.11.txt b/docs/releases/1.11.txt index c8282f70d6..67c247c86e 100644 --- a/docs/releases/1.11.txt +++ b/docs/releases/1.11.txt @@ -300,6 +300,10 @@ Templates supports context processors by setting the ``'context_processors'`` option in :setting:`OPTIONS <TEMPLATES-OPTIONS>`. +* The :ttag:`regroup` tag now returns ``namedtuple``\s instead of dictionaries + so you can unpack the group object directly in a loop, e.g. + ``{% for grouper, list in regrouped %}``. + Tests ~~~~~ |
