MCPcopy
hub / github.com/django/django / resolve_expression

Method resolve_expression

django/db/models/expressions.py:1673–1683  ·  view source on GitHub ↗
(
        self, query=None, allow_joins=True, reuse=None, summarize=False, for_save=False
    )

Source from the content-addressed store, hash-verified

1671 self.condition, self.result = exprs
1672
1673 def resolve_expression(
1674 self, query=None, allow_joins=True, reuse=None, summarize=False, for_save=False
1675 ):
1676 c = super().resolve_expression(query, allow_joins, reuse, summarize, for_save)
1677 if for_save and c.condition is not None:
1678 # Resolve condition with for_save=False, since it's used as a
1679 # filter.
1680 c.condition = self.condition.resolve_expression(
1681 query, allow_joins, reuse, summarize, for_save=False
1682 )
1683 return c
1684
1685 def get_source_fields(self):
1686 # We're only interested in the fields of the result expressions.

Callers

nothing calls this directly

Calls 1

resolve_expressionMethod · 0.45

Tested by

no test coverage detected