Remove Field.get_validator_unique_lookup_type()
Usage of this method was removed pre 1.0 (c2ba59fc
).
This commit is contained in:
parent
42b5e4feea
commit
aa77e90aa9
|
@ -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."""
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue