mirror of https://github.com/django/django.git
Removed models.Field.bind() -- unused/undocumented since at least 1.0.
This commit is contained in:
parent
30cbd5d360
commit
69ee7c8d76
|
@ -782,9 +782,6 @@ class Field(RegisterLookupMixin):
|
||||||
"""
|
"""
|
||||||
return smart_text(self._get_val_from_obj(obj))
|
return smart_text(self._get_val_from_obj(obj))
|
||||||
|
|
||||||
def bind(self, fieldmapping, original, bound_field_class):
|
|
||||||
return bound_field_class(self, fieldmapping, original)
|
|
||||||
|
|
||||||
def _get_choices(self):
|
def _get_choices(self):
|
||||||
if isinstance(self._choices, collections.Iterator):
|
if isinstance(self._choices, collections.Iterator):
|
||||||
choices, self._choices = tee(self._choices)
|
choices, self._choices = tee(self._choices)
|
||||||
|
|
Loading…
Reference in New Issue