diff options
| author | Tim Graham <timograham@gmail.com> | 2014-11-12 20:11:40 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-11-12 20:11:40 +0100 |
| commit | aa77e90aa91f90c9be5fb8e492b033875545bee4 (patch) | |
| tree | 3a986e9e56fc4f8e79ecbaa64dbfd7ed4d4b6891 | |
| parent | 42b5e4feeacf7cfa57867bf9fd5a6046de8c1cd3 (diff) | |
Remove Field.get_validator_unique_lookup_type()
Usage of this method was removed pre 1.0 (c2ba59fc).
| -rw-r--r-- | django/db/models/fields/__init__.py | 3 | ||||
| -rw-r--r-- | django/db/models/fields/related.py | 3 |
2 files changed, 0 insertions, 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() |
