From: Brandon W Maister Date: Thu, 5 Feb 2015 19:49:30 +0000 (-0500) Subject: Change attr filter example to match description X-Git-Tag: 2.8~37^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F402%2Fhead;p=thirdparty%2Fjinja.git 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. --- 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.