1
0
mirror of https://github.com/django/django.git synced 2025-10-26 23:26:08 +00:00

Refs #23162 -- Removed forms.Field._has_changed() method.

Per deprecation timeline.
This commit is contained in:
Tim Graham
2015-09-03 14:47:40 -04:00
parent 491de4f07c
commit a3fe4addcb
2 changed files with 2 additions and 15 deletions

View File

@@ -28,9 +28,6 @@ from django.forms.widgets import (
)
from django.utils import formats, six
from django.utils.dateparse import parse_duration
from django.utils.deprecation import (
RemovedInDjango110Warning, RenameMethodsBase,
)
from django.utils.duration import duration_string
from django.utils.encoding import force_str, force_text, smart_text
from django.utils.ipv6 import clean_ipv6_address
@@ -48,13 +45,7 @@ __all__ = (
)
class RenameFieldMethods(RenameMethodsBase):
renamed_methods = (
('_has_changed', 'has_changed', RemovedInDjango110Warning),
)
class Field(six.with_metaclass(RenameFieldMethods, object)):
class Field(object):
widget = TextInput # Default widget to use when rendering this type of Field.
hidden_widget = HiddenInput # Default widget to use when rendering this as "hidden".
default_validators = [] # Default set of validators