(values, method_name)
| 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: |