diff options
| author | Claude Paroz <claude@2xlibre.net> | 2014-02-26 22:48:20 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2014-03-08 09:57:40 +0100 |
| commit | 210d0489c5daad56b806f8165f9fe09fb3c2a019 (patch) | |
| tree | f16c665e94669288fec0c3712a5639e9ad1ad1a7 /django/core/cache/__init__.py | |
| parent | 70ec4d776ef0e68960ccee21476b8654e9399f53 (diff) | |
Fixed #21188 -- Introduced subclasses for to-be-removed-in-django-XX warnings
Thanks Anssi Kääriäinen for the idea and Simon Charette for the
review.
Diffstat (limited to 'django/core/cache/__init__.py')
| -rw-r--r-- | django/core/cache/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/django/core/cache/__init__.py b/django/core/cache/__init__.py index 603086a39c..63b739f1de 100644 --- a/django/core/cache/__init__.py +++ b/django/core/cache/__init__.py @@ -20,6 +20,7 @@ from django.core import signals from django.core.cache.backends.base import ( InvalidCacheBackendError, CacheKeyWarning, BaseCache) from django.core.exceptions import ImproperlyConfigured +from django.utils.deprecation import RemovedInDjango19Warning from django.utils.module_loading import import_string @@ -52,7 +53,7 @@ def get_cache(backend, **kwargs): """ warnings.warn("'get_cache' is deprecated in favor of 'caches'.", - PendingDeprecationWarning, stacklevel=2) + RemovedInDjango19Warning, stacklevel=2) cache = _create_cache(backend, **kwargs) # Some caches -- python-memcached in particular -- need to do a cleanup at the # end of a request cycle. If not implemented in a particular backend |
