mirror of
https://github.com/django/django.git
synced 2025-03-11 18:02:35 +00:00
Removed unused FieldGetDbPrepValueMixin.get_prep_lookup_value().
Unused since its introduction in 4f138fe5a496a81115c4fba6615a517fc62c3b17.
This commit is contained in:
parent
f4bde7d9a1
commit
5d55a26019
@ -171,12 +171,6 @@ class FieldGetDbPrepValueMixin(object):
|
|||||||
"""
|
"""
|
||||||
get_db_prep_lookup_value_is_iterable = False
|
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):
|
def get_db_prep_lookup(self, value, connection):
|
||||||
# For relational fields, use the output_field of the 'field' attribute.
|
# For relational fields, use the output_field of the 'field' attribute.
|
||||||
field = getattr(self.lhs.output_field, 'field', None)
|
field = getattr(self.lhs.output_field, 'field', None)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user