From 9443b3cd70f983a0e20a04bb55b195a56d382e5a Mon Sep 17 00:00:00 2001 From: Brandon W Maister Date: Thu, 5 Feb 2015 14:49:30 -0500 Subject: [PATCH] Change attr filter example to match description foo["bar"] is an item lookup, so saying that items are not looked up with that as an example is confusing. --- jinja2/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jinja2/filters.py b/jinja2/filters.py index 4ea5b0ac..33bda42f 100644 --- a/jinja2/filters.py +++ b/jinja2/filters.py @@ -778,7 +778,7 @@ def do_reverse(value): @environmentfilter def do_attr(environment, obj, name): """Get an attribute of an object. ``foo|attr("bar")`` works like - ``foo["bar"]`` just that always an attribute is returned and items are not + ``foo.bar`` just that always an attribute is returned and items are not looked up. See :ref:`Notes on subscriptions ` for more details. -- 2.47.2