(self, expression, bbox=False, crs=False, precision=8, **extra)
| 189 | output_field = TextField() |
| 190 | |
| 191 | def __init__(self, expression, bbox=False, crs=False, precision=8, **extra): |
| 192 | expressions = [expression] |
| 193 | if precision is not None: |
| 194 | expressions.append(self._handle_param(precision, "precision", int)) |
| 195 | options = 0 |
| 196 | if crs and bbox: |
| 197 | options = 3 |
| 198 | elif bbox: |
| 199 | options = 1 |
| 200 | elif crs: |
| 201 | options = 2 |
| 202 | expressions.append(options) |
| 203 | super().__init__(*expressions, **extra) |
| 204 | |
| 205 | def as_oracle(self, compiler, connection, **extra_context): |
| 206 | source_expressions = self.get_source_expressions() |
nothing calls this directly
no test coverage detected