From aa77e90aa91f90c9be5fb8e492b033875545bee4 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 12 Nov 2014 20:11:40 +0100 Subject: [PATCH] Remove Field.get_validator_unique_lookup_type() Usage of this method was removed pre 1.0 (c2ba59fc). --- django/db/models/fields/__init__.py | 3 --- django/db/models/fields/related.py | 3 --- 2 files changed, 6 deletions(-) diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py index b9f320c0e0..6eed25d96a 100644 --- a/django/db/models/fields/__init__.py +++ b/django/db/models/fields/__init__.py @@ -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.""" diff --git a/django/db/models/fields/related.py b/django/db/models/fields/related.py index 428acd690d..b52d59394d 100644 --- a/django/db/models/fields/related.py +++ b/django/db/models/fields/related.py @@ -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()