diff options
Diffstat (limited to 'django/utils')
| -rw-r--r-- | django/utils/deprecation.py | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/django/utils/deprecation.py b/django/utils/deprecation.py index eaef496138..caed5b25d4 100644 --- a/django/utils/deprecation.py +++ b/django/utils/deprecation.py @@ -157,42 +157,3 @@ class MiddlewareMixin: thread_sensitive=True, )(request, response) return response - - -class DeprecationForHistoricalMigrationMixin: - system_check_deprecated_details = None - system_check_removed_details = None - check_type = "" - - def check_deprecation_details(self): - from django.core import checks - - if self.system_check_removed_details is not None: - return [ - checks.Error( - self.system_check_removed_details.get( - "msg", - "%s has been removed except for support in historical " - "migrations." % self.__class__.__name__, - ), - hint=self.system_check_removed_details.get("hint"), - obj=self, - id=self.system_check_removed_details.get( - "id", f"{self.check_type}.EXXX" - ), - ) - ] - elif self.system_check_deprecated_details is not None: - return [ - checks.Warning( - self.system_check_deprecated_details.get( - "msg", "%s has been deprecated." % self.__class__.__name__ - ), - hint=self.system_check_deprecated_details.get("hint"), - obj=self, - id=self.system_check_deprecated_details.get( - "id", f"{self.check_type}.WXXX" - ), - ) - ] - return [] |
