MCPcopy
hub / github.com/django/django / IsValid

Class IsValid

django/contrib/gis/db/models/functions.py:460–466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458
459@BaseSpatialField.register_lookup
460class IsValid(OracleToleranceMixin, GeoFuncMixin, Transform):
461 lookup_name = "isvalid"
462 output_field = BooleanField()
463
464 def as_oracle(self, compiler, connection, **extra_context):
465 sql, params = super().as_oracle(compiler, connection, **extra_context)
466 return "CASE %s WHEN 'TRUE' THEN 1 ELSE 0 END" % sql, params
467
468
469class Length(DistanceResultMixin, OracleToleranceMixin, GeoFunc):

Callers

nothing calls this directly

Calls 1

BooleanFieldClass · 0.90

Tested by

no test coverage detected