(self, compiler, connection, **extra_context)
| 472 | super().__init__(expr1, **extra) |
| 473 | |
| 474 | def as_sql(self, compiler, connection, **extra_context): |
| 475 | if ( |
| 476 | self.geo_field.geodetic(connection) |
| 477 | and not connection.features.supports_length_geodetic |
| 478 | ): |
| 479 | raise NotSupportedError( |
| 480 | "This backend doesn't support Length on geodetic fields" |
| 481 | ) |
| 482 | return super().as_sql(compiler, connection, **extra_context) |
| 483 | |
| 484 | def as_postgresql(self, compiler, connection, **extra_context): |
| 485 | clone = self.copy() |
nothing calls this directly
no test coverage detected