mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Fixed #22933 -- Deprecated django.template.resolve_variable().
This commit is contained in:
@@ -42,6 +42,8 @@ about each item can often be found in the release notes of two versions prior.
|
||||
:class:`~django.core.management.BaseCommand` instead, which takes no arguments
|
||||
by default.
|
||||
|
||||
* ``django.template.resolve_variable`` will be removed.
|
||||
|
||||
.. _deprecation-removed-in-1.9:
|
||||
|
||||
1.9
|
||||
|
||||
@@ -525,3 +525,10 @@ instead, which takes no arguments by default.
|
||||
option ``cache_choices``. This cached querysets between multiple renderings of
|
||||
the same ``Form`` object. This option is subject to an accelerated deprecation
|
||||
and will be removed in Django 1.9.
|
||||
|
||||
``django.template.resolve_variable()``
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
The function has been informally marked as "Deprecated" for some time. Replace
|
||||
``resolve_variable(path, context)`` with
|
||||
``django.template.Variable(path).resolve(context)``.
|
||||
|
||||
Reference in New Issue
Block a user