mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #25466 -- Added backwards compatibility aliases for LoaderOrigin and StringOrigin.
Thanks Simon Charette for the DeprecationInstanceCheck class.
This commit is contained in:
parent
ae9f9dc37f
commit
8d1a001ef6
8 changed files with 62 additions and 7 deletions
|
@ -100,6 +100,10 @@ details on these changes.
|
|||
* The ``enclosure`` keyword argument to ``SyndicationFeed.add_item()`` will be
|
||||
removed.
|
||||
|
||||
* The ``django.template.loader.LoaderOrigin`` and
|
||||
``django.template.base.StringOrigin`` aliases for
|
||||
``django.template.base.Origin`` will be removed.
|
||||
|
||||
.. _deprecation-removed-in-1.10:
|
||||
|
||||
1.10
|
||||
|
|
|
@ -818,7 +818,9 @@ debug as ``True``, an instance of ``django.template.loader.LoaderOrigin`` or
|
|||
``django.template.base.StringOrigin`` was set as the origin attribute on the
|
||||
template object. These classes have been combined into
|
||||
:class:`~django.template.base.Origin` and is now always set regardless of the
|
||||
engine debug setting.
|
||||
engine debug setting. For a minimal level of backwards compatibility, the old
|
||||
class names will be kept as aliases to the new ``Origin`` class until
|
||||
Django 2.0.
|
||||
|
||||
.. _default-logging-changes-19:
|
||||
|
||||
|
@ -1335,6 +1337,10 @@ Miscellaneous
|
|||
deprecated. Use the new ``enclosures`` argument which accepts a list of
|
||||
``Enclosure`` objects instead of a single one.
|
||||
|
||||
* The ``django.template.loader.LoaderOrigin`` and
|
||||
``django.template.base.StringOrigin`` aliases for
|
||||
``django.template.base.Origin`` are deprecated.
|
||||
|
||||
.. _removed-features-1.9:
|
||||
|
||||
Features removed in 1.9
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue