diff options
| author | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2026-05-13 17:58:19 +0200 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2026-05-20 16:17:41 -0400 |
| commit | 0c0bda7f79a2de89a55cfcc8e60467d6588f406f (patch) | |
| tree | 6cf77e3f3ce52efd887498d3dbcea06a98ca625f | |
| parent | c17e494866024304da7f49a8ac3a43ac53bec93e (diff) | |
Advanced deprecation warnings for Django 6.2.
| -rw-r--r-- | django/utils/deprecation.py | 7 | ||||
| -rw-r--r-- | docs/internals/deprecation.txt | 8 |
2 files changed, 12 insertions, 3 deletions
diff --git a/django/utils/deprecation.py b/django/utils/deprecation.py index f856582454..2832b98b59 100644 --- a/django/utils/deprecation.py +++ b/django/utils/deprecation.py @@ -19,15 +19,16 @@ def django_file_prefixes(): return (os.path.join(os.path.dirname(file), ""),) -class RemovedInNextVersionWarning(DeprecationWarning): +class RemovedInDjango70Warning(DeprecationWarning): pass -class RemovedInDjango70Warning(PendingDeprecationWarning): +class RemovedInDjango71Warning(PendingDeprecationWarning): pass -RemovedAfterNextVersionWarning = RemovedInDjango70Warning +RemovedInNextVersionWarning = RemovedInDjango70Warning +RemovedAfterNextVersionWarning = RemovedInDjango71Warning def warn_about_external_use( diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt index 2cb6a15f2f..5a2aa5d5b8 100644 --- a/docs/internals/deprecation.txt +++ b/docs/internals/deprecation.txt @@ -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-7.1: + +7.1 +--- + +See the :ref:`Django 6.2 release notes <deprecated-features-6.2>` for more +details on these changes. + .. _deprecation-removed-in-7.0: 7.0 |
