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/utils/module_loading.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/utils/module_loading.py')
| -rw-r--r-- | django/utils/module_loading.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/django/utils/module_loading.py b/django/utils/module_loading.py index 7ba0381307..bd546ac405 100644 --- a/django/utils/module_loading.py +++ b/django/utils/module_loading.py @@ -9,6 +9,7 @@ import warnings from django.core.exceptions import ImproperlyConfigured from django.utils import six +from django.utils.deprecation import RemovedInDjango19Warning def import_string(dotted_path): @@ -39,7 +40,7 @@ def import_by_path(dotted_path, error_prefix=''): """ warnings.warn( 'import_by_path() has been deprecated. Use import_string() instead.', - PendingDeprecationWarning, stacklevel=2) + RemovedInDjango19Warning, stacklevel=2) try: attr = import_string(dotted_path) except ImportError as e: |
