id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 1461 [patch] regroup tag doesn't resolve grouper variable Russell Cloran Adrian Holovaty "Hi, I'm not sure if this will be seen as a defect, but it certainly is irritating me :) When regroup'ing, eg: {{{ {% regroup object_list|dictsort:groupby by groupby as grouped %} }}} The variable {{{groupby}}} is resolved in the filter, but not in the ""by"" clause of the regroup tag. This means that it is impossible to group by a value learned at runtime. Patch attached which fixes the problem... Grouping by a predetermined string would now be done like this: {{{ {% regroup object_list|dictsort:groupby by ""foo"" as grouped %} }}} NOTE: This changes the specification of the regroup tag. (PS, I'm using magic-removal) " defect closed Template system minor wontfix Ready for checkin 1 0 0 0 0 0