diff options
| author | Tim Graham <timograham@gmail.com> | 2017-07-14 10:07:18 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-07-14 12:06:06 -0400 |
| commit | 2e9ada15510e5729c331d7383fc9827e9082a8a9 (patch) | |
| tree | 0099af2c8e317ffd6c321a78944b57130a08c004 | |
| parent | fc2dee6908dee70c98453b109180831baac4d9da (diff) | |
Fixed #28397 -- Removed django.core.exceptions.DjangoRuntimeWarning.
| -rw-r--r-- | django/core/cache/backends/base.py | 4 | ||||
| -rw-r--r-- | django/core/exceptions.py | 4 | ||||
| -rw-r--r-- | docs/releases/2.0.txt | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/django/core/cache/backends/base.py b/django/core/cache/backends/base.py index b5661891d6..a0ed8275f9 100644 --- a/django/core/cache/backends/base.py +++ b/django/core/cache/backends/base.py @@ -2,7 +2,7 @@ import time import warnings -from django.core.exceptions import DjangoRuntimeWarning, ImproperlyConfigured +from django.core.exceptions import ImproperlyConfigured from django.utils.module_loading import import_string @@ -10,7 +10,7 @@ class InvalidCacheBackendError(ImproperlyConfigured): pass -class CacheKeyWarning(DjangoRuntimeWarning): +class CacheKeyWarning(RuntimeWarning): pass diff --git a/django/core/exceptions.py b/django/core/exceptions.py index 04ed3bd205..86a3988585 100644 --- a/django/core/exceptions.py +++ b/django/core/exceptions.py @@ -8,10 +8,6 @@ class FieldDoesNotExist(Exception): pass -class DjangoRuntimeWarning(RuntimeWarning): - pass - - class AppRegistryNotReady(Exception): """The django.apps registry is not populated yet""" pass diff --git a/docs/releases/2.0.txt b/docs/releases/2.0.txt index 03f700163c..8b41076aa7 100644 --- a/docs/releases/2.0.txt +++ b/docs/releases/2.0.txt @@ -547,6 +547,10 @@ Miscellaneous <automatic-spatial-transformations>` now raises ``NotImplementedError`` on MySQL instead of silently using non-transformed geometries. +* ``django.core.exceptions.DjangoRuntimeWarning`` is removed. It was only used + in the cache backend as an intermediate class in ``CacheKeyWarning``'s + inheritance of ``RuntimeWarning``. + .. _deprecated-features-2.0: Features deprecated in 2.0 |
