MCPcopy
hub / github.com/django/django / __init__

Method __init__

django/contrib/gis/db/models/functions.py:375–382  ·  view source on GitHub ↗
(self, expression, srid=0, **extra)

Source from the content-addressed store, hash-verified

373 geom_param_pos = ()
374
375 def __init__(self, expression, srid=0, **extra):
376 expressions = [
377 expression,
378 self._handle_param(srid, "srid", int),
379 ]
380 if "output_field" not in extra:
381 extra["output_field"] = GeometryField(srid=srid)
382 super().__init__(*expressions, **extra)
383
384 def as_oracle(self, compiler, connection, **extra_context):
385 # Oracle doesn't support the srid parameter.

Callers

nothing calls this directly

Calls 3

GeometryFieldClass · 0.90
_handle_paramMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected