diff options
| author | Tim Graham <timograham@gmail.com> | 2015-06-22 13:54:35 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-06-24 16:08:20 -0400 |
| commit | aaacaeb0963c406c4fe6f68c6ae51f4a65878250 (patch) | |
| tree | b100c6ffc345f12342243a8ac684a692b26a9357 /django/forms/fields.py | |
| parent | e73842a95fb751f89a8cafc861bfd57d034cd116 (diff) | |
Renamed RemovedInDjangoXYWarnings for new roadmap.
Forwardport of ae1d663b7913f6da233c55409c4973248372d302
from stable/1.8.x plus more.
Diffstat (limited to 'django/forms/fields.py')
| -rw-r--r-- | django/forms/fields.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/django/forms/fields.py b/django/forms/fields.py index e2d573a56f..1d609d2455 100644 --- a/django/forms/fields.py +++ b/django/forms/fields.py @@ -29,7 +29,7 @@ from django.forms.widgets import ( from django.utils import formats, six from django.utils.dateparse import parse_duration from django.utils.deprecation import ( - RemovedInDjango20Warning, RenameMethodsBase, + RemovedInDjango110Warning, RenameMethodsBase, ) from django.utils.duration import duration_string from django.utils.encoding import force_str, force_text, smart_text @@ -50,7 +50,7 @@ __all__ = ( class RenameFieldMethods(RenameMethodsBase): renamed_methods = ( - ('_has_changed', 'has_changed', RemovedInDjango20Warning), + ('_has_changed', 'has_changed', RemovedInDjango110Warning), ) @@ -544,7 +544,7 @@ class RegexField(CharField): warnings.warn( "The 'error_message' argument is deprecated. Use " "Field.error_messages['invalid'] instead.", - RemovedInDjango20Warning, stacklevel=2 + RemovedInDjango110Warning, stacklevel=2 ) error_messages = kwargs.get('error_messages') or {} error_messages['invalid'] = error_message |
