MCPcopy
hub / github.com/django/django / _validate_values_are_expressions

Method _validate_values_are_expressions

django/db/models/query.py:2299–2310  ·  view source on GitHub ↗
(values, method_name)

Source from the content-addressed store, hash-verified

2297
2298 @staticmethod
2299 def _validate_values_are_expressions(values, method_name):
2300 invalid_args = sorted(
2301 str(arg) for arg in values if not hasattr(arg, "resolve_expression")
2302 )
2303 if invalid_args:
2304 raise TypeError(
2305 "QuerySet.%s() received non-expression(s): %s."
2306 % (
2307 method_name,
2308 ", ".join(invalid_args),
2309 )
2310 )
2311
2312 def _not_support_combined_queries(self, operation_name):
2313 if self.query.combinator:

Callers 2

aggregateMethod · 0.95
_annotateMethod · 0.95

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected