MCPcopy
hub / github.com/django/django / get_prep_lookup

Method get_prep_lookup

django/contrib/postgres/fields/ranges.py:218–221  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

216
217class RangeContains(lookups.DataContains):
218 def get_prep_lookup(self):
219 if not isinstance(self.rhs, (list, tuple, Range)):
220 return Cast(self.rhs, self.lhs.field.base_field)
221 return super().get_prep_lookup()
222
223
224RangeField.register_lookup(RangeContains)

Callers

nothing calls this directly

Calls 1

CastClass · 0.90

Tested by

no test coverage detected