Ticket #3887: defaulttags.patch
File defaulttags.patch, 445 bytes (added by , 18 years ago) |
---|
-
django/template/defaulttags.py
989 989 def do_with(parser, token): 990 990 """ 991 991 Add a value to the context (inside of this block) for caching and easy 992 access. For example:: 992 access. 993 994 For example:: 993 995 994 996 {% with person.some_sql_method as total %} 995 997 {{ total }} object{{ total|pluralize }}