Remove Field.get_validator_unique_lookup_type()

Usage of this method was removed pre 1.0 (c2ba59fc).
This commit is contained in:
Tim Graham 2014-11-12 20:11:40 +01:00
parent 42b5e4feea
commit aa77e90aa9
2 changed files with 0 additions and 6 deletions

View File

@ -730,9 +730,6 @@ class Field(RegisterLookupMixin):
return None
return ""
def get_validator_unique_lookup_type(self):
return '%s__exact' % self.name
def get_choices(self, include_blank=True, blank_choice=BLANK_CHOICE_DASH, limit_choices_to=None):
"""Returns choices with a default blank choices included, for use
as SelectField choices for this field."""

View File

@ -1787,9 +1787,6 @@ class ForeignKey(ForeignObject):
column = self.db_column or attname
return attname, column
def get_validator_unique_lookup_type(self):
return '%s__%s__exact' % (self.name, self.related_field.name)
def get_default(self):
"Here we check if the default value is an object and return the to_field if so."
field_default = super(ForeignKey, self).get_default()