diff --git a/django/utils/deprecation.py b/django/utils/deprecation.py index 19379dfe58..836cfa564c 100644 --- a/django/utils/deprecation.py +++ b/django/utils/deprecation.py @@ -4,16 +4,16 @@ import warnings from asgiref.sync import iscoroutinefunction, markcoroutinefunction, sync_to_async -class RemovedInDjango50Warning(DeprecationWarning): +class RemovedInDjango51Warning(DeprecationWarning): pass -class RemovedInDjango51Warning(PendingDeprecationWarning): +class RemovedInDjango60Warning(PendingDeprecationWarning): pass -RemovedInNextVersionWarning = RemovedInDjango50Warning -RemovedAfterNextVersionWarning = RemovedInDjango51Warning +RemovedInNextVersionWarning = RemovedInDjango51Warning +RemovedAfterNextVersionWarning = RemovedInDjango60Warning class warn_about_renamed_method: diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt index 86326c3b4f..1f07f3f39b 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 `. More details about each item can often be found in the release notes of two versions prior. +.. _deprecation-removed-in-6.0: + +6.0 +--- + +See the :ref:`Django 5.0 release notes ` for more +details on these changes. + .. _deprecation-removed-in-5.1: 5.1 diff --git a/tests/runtests.py b/tests/runtests.py index db873e2c3d..a3550c553c 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -29,8 +29,8 @@ else: from django.test.selenium import SeleniumTestCaseBase from django.test.utils import NullTimeKeeper, TimeKeeper, get_runner from django.utils.deprecation import ( - RemovedInDjango50Warning, RemovedInDjango51Warning, + RemovedInDjango60Warning, ) from django.utils.log import DEFAULT_LOGGING @@ -43,7 +43,7 @@ else: warnings.filterwarnings("ignore", r"\(1003, *", category=MySQLdb.Warning) # Make deprecation warnings errors to ensure no usage of deprecated features. -warnings.simplefilter("error", RemovedInDjango50Warning) +warnings.simplefilter("error", RemovedInDjango60Warning) warnings.simplefilter("error", RemovedInDjango51Warning) # Make resource and runtime warning errors to ensure no usage of error prone # patterns.