'The join template filter has needs_autoescape = True'

@setup({'regroup04': '{%    regroup    data    by    bar|join:""    as    grouped    %}{%    for    group    in    grouped    %}{{    group.grouper    }}:{%    for    item    in    group.list    %}{{    item.foo|first    }}{%    endfor    %},{%    endfor    %}'})
def test_regroup04(self):

    output = self.engine.render_to_string('regroup04', {'data': [{'foo': 'x', 'bar': ['ab', 'c']}, {'foo': 'y', 'bar': ['a', 'bc']}, {'foo': 'z', 'bar': ['a', 'd']}]})
    self.assertEqual(output, 'abc:xy,ad:z,')
