mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
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:
parent
7d7d2d354c
commit
0e54c23caf
3 changed files with 26 additions and 18 deletions
|
@ -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
|
||||
==========================
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue