From 8b6d0333cf5cfefd55e36969145507bb6acfca10 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Thu, 16 Sep 2021 09:58:12 +0200 Subject: Advanced deprecation warnings for Django 4.1. --- django/utils/deprecation.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'django/utils') diff --git a/django/utils/deprecation.py b/django/utils/deprecation.py index 08f33fa7d3..f64bc3c6fb 100644 --- a/django/utils/deprecation.py +++ b/django/utils/deprecation.py @@ -5,7 +5,7 @@ import warnings from asgiref.sync import sync_to_async -class RemovedInDjango41Warning(DeprecationWarning): +class RemovedInNextVersionWarning(DeprecationWarning): pass @@ -13,9 +13,6 @@ class RemovedInDjango50Warning(PendingDeprecationWarning): pass -RemovedInNextVersionWarning = RemovedInDjango41Warning - - class warn_about_renamed_method: def __init__(self, class_name, old_method_name, new_method_name, deprecation_warning): self.class_name = class_name -- cgit v1.3