MCPcopy
hub / github.com/django/django / process_rhs

Method process_rhs

django/contrib/postgres/fields/ranges.py:238–243  ·  view source on GitHub ↗
(self, compiler, connection)

Source from the content-addressed store, hash-verified

236 postgres_operator = RangeOperators.CONTAINS
237
238 def process_rhs(self, compiler, connection):
239 # Transform rhs value for db lookup.
240 if isinstance(self.rhs, datetime.date):
241 value = models.Value(self.rhs)
242 self.rhs = value.resolve_expression(compiler.query)
243 return super().process_rhs(compiler, connection)
244
245 def as_postgresql(self, compiler, connection):
246 sql, params = super().as_postgresql(compiler, connection)

Callers

nothing calls this directly

Calls 2

resolve_expressionMethod · 0.95
process_rhsMethod · 0.45

Tested by

no test coverage detected