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

Method resolve_expression

django/db/models/expressions.py:963–974  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

961 )
962
963 def resolve_expression(self, *args, **kwargs):
964 col = super().resolve_expression(*args, **kwargs)
965 if col.contains_over_clause:
966 raise NotSupportedError(
967 f"Referencing outer query window expression is not supported: "
968 f"{self.name}."
969 )
970 # FIXME: Rename possibly_multivalued to multivalued and fix detection
971 # for non-multivalued JOINs (e.g. foreign key fields). This should take
972 # into account only many-to-many and one-to-many relationships.
973 col.possibly_multivalued = LOOKUP_SEP in self.name
974 return col
975
976 def relabeled_clone(self, relabels):
977 return self

Callers

nothing calls this directly

Calls 2

NotSupportedErrorClass · 0.90
resolve_expressionMethod · 0.45

Tested by

no test coverage detected