summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-09-24 17:30:43 -0400
committerGitHub <noreply@github.com>2016-09-24 17:30:43 -0400
commit5d55a26019e65224569ac4edc73428a3c532d34d (patch)
tree31b2edb46e0491558569964a50a1d3c0607e1577
parentf4bde7d9a10312414c8da33adfcad701a1463bce (diff)
Removed unused FieldGetDbPrepValueMixin.get_prep_lookup_value().
Unused since its introduction in 4f138fe5a496a81115c4fba6615a517fc62c3b17.
-rw-r--r--django/db/models/lookups.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/django/db/models/lookups.py b/django/db/models/lookups.py
index bd8beea53f..c3809cbf0a 100644
--- a/django/db/models/lookups.py
+++ b/django/db/models/lookups.py
@@ -171,12 +171,6 @@ class FieldGetDbPrepValueMixin(object):
"""
get_db_prep_lookup_value_is_iterable = False
- @classmethod
- def get_prep_lookup_value(cls, value, output_field):
- if hasattr(value, '_prepare'):
- return value._prepare(output_field)
- return output_field.get_prep_value(value)
-
def get_db_prep_lookup(self, value, connection):
# For relational fields, use the output_field of the 'field' attribute.
field = getattr(self.lhs.output_field, 'field', None)