Commit aa77e90a authored by Tim Graham's avatar Tim Graham
Browse files

Remove Field.get_validator_unique_lookup_type()

Usage of this method was removed pre 1.0 (c2ba59fc).
parent 42b5e4fe
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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."""
+0 −3
Original line number Diff line number Diff line
@@ -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()