]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
add list filter to make example match output 975/head
authorKevin Broch <kbroch@provino-tech.com>
Mon, 29 Apr 2019 18:26:33 +0000 (11:26 -0700)
committerKevin Broch <kbroch@provino-tech.com>
Mon, 29 Apr 2019 18:26:33 +0000 (11:26 -0700)
jinja2/filters.py

index bf5173c1a32db9fe82802f4a884b75f73c12dff4..80bbd6060da50b57493fdf6f6e283bfc94e4bff4 100644 (file)
@@ -284,7 +284,7 @@ def do_unique(environment, value, case_sensitive=False, attribute=None):
 
     .. sourcecode:: jinja
 
-        {{ ['foo', 'bar', 'foobar', 'FooBar']|unique }}
+        {{ ['foo', 'bar', 'foobar', 'FooBar']|unique|list }}
             -> ['foo', 'bar', 'foobar']
 
     The unique items are yielded in the same order as their first occurrence in