Fixed #17660 -- Standardize extends tag token parsing

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17568 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Chris Beaven 2012-02-21 02:59:05 +00:00
parent 7d7d2d354c
commit 0e54c23caf
3 changed files with 26 additions and 18 deletions

View file

@ -1031,6 +1031,17 @@ If you depended on the output of this command -- if you parsed it, for example
management commands in a script, use
:djadmin:`manage.py help --commands <help>` instead.
``extends`` template tag
~~~~~~~~~~~~~~~~~~~~~~~~
Previously, the :ttag:`extends` tag used a buggy method of parsing arguments,
which could lead to it erroneously considering an argument as a string literal
when it wasn't. It now utilises ``parser.compile_filter`` like other tags.
The internals of the tag aren't part of the official stable API, but in the
interests of full disclosure, the ``ExtendsNode.__init__`` definition has
changed which may break any custom tags that use this node class.
Features deprecated in 1.4
==========================