From cc72fa078694872a8884f2f52e4e425ae35f3745 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sat, 19 Oct 2024 22:07:56 +0200 Subject: [PATCH] groupby_as_dict: mention Jinja2's groupby filter (#9040) Mention Jinja2's groupby filter. --- plugins/filter/groupby_as_dict.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/filter/groupby_as_dict.py b/plugins/filter/groupby_as_dict.py index 4a8f4c6dc1..8e29c5863c 100644 --- a/plugins/filter/groupby_as_dict.py +++ b/plugins/filter/groupby_as_dict.py @@ -13,6 +13,8 @@ DOCUMENTATION = ''' author: Felix Fontein (@felixfontein) description: - Transform a sequence of dictionaries to a dictionary where the dictionaries are indexed by an attribute. + - This filter is similar to the Jinja2 C(groupby) filter. Use the Jinja2 C(groupby) filter if you have multiple entries with the same value, + or when you need a dictionary with list values, or when you need to use deeply nested attributes. positional: attribute options: _input: