mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Added RemovedInDjango21Warning
This commit is contained in:
parent
cbea13f344
commit
6f520bf7d8
@ -4,14 +4,17 @@ import inspect
|
||||
import warnings
|
||||
|
||||
|
||||
class RemovedInDjango20Warning(PendingDeprecationWarning):
|
||||
class RemovedInDjango20Warning(DeprecationWarning):
|
||||
pass
|
||||
|
||||
|
||||
class RemovedInNextVersionWarning(DeprecationWarning):
|
||||
class RemovedInDjango21Warning(PendingDeprecationWarning):
|
||||
pass
|
||||
|
||||
|
||||
RemovedInNextVersionWarning = RemovedInDjango20Warning
|
||||
|
||||
|
||||
class warn_about_renamed_method(object):
|
||||
def __init__(self, class_name, old_method_name, new_method_name, deprecation_warning):
|
||||
self.class_name = class_name
|
||||
|
@ -7,6 +7,14 @@ in a backward incompatible way, following their deprecation, as per the
|
||||
:ref:`deprecation policy <internal-release-deprecation-policy>`. More details
|
||||
about each item can often be found in the release notes of two versions prior.
|
||||
|
||||
.. _deprecation-removed-in-2.1:
|
||||
|
||||
2.1
|
||||
---
|
||||
|
||||
See the :ref:`Django 1.11 release notes<deprecated-features-1.11>` for more
|
||||
details on these changes.
|
||||
|
||||
.. _deprecation-removed-in-2.0:
|
||||
|
||||
2.0
|
||||
|
Loading…
Reference in New Issue
Block a user