(self, compiler, connection)
| 336 | sql_template = "%(func)s(%(lhs)s, %(rhs)s, %(value)s)" |
| 337 | |
| 338 | def process_distance(self, compiler, connection): |
| 339 | dist_param = self.rhs_params[0] |
| 340 | if ( |
| 341 | not connection.features.supports_dwithin_distance_expr |
| 342 | and hasattr(dist_param, "resolve_expression") |
| 343 | and not isinstance(dist_param, Distance) |
| 344 | ): |
| 345 | raise NotSupportedError( |
| 346 | "This backend does not support expressions for specifying " |
| 347 | "distance in the dwithin lookup." |
| 348 | ) |
| 349 | return super().process_distance(compiler, connection) |
| 350 | |
| 351 | def process_rhs(self, compiler, connection): |
| 352 | dist_sql, dist_params = self.process_distance(compiler, connection) |
no test coverage detected