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

Method __init__

django/contrib/gis/db/models/functions.py:316–320  ·  view source on GitHub ↗
(self, expr1, expr2, spheroid=None, **extra)

Source from the content-addressed store, hash-verified

314 spheroid = None
315
316 def __init__(self, expr1, expr2, spheroid=None, **extra):
317 expressions = [expr1, expr2]
318 if spheroid is not None:
319 self.spheroid = self._handle_param(spheroid, "spheroid", bool)
320 super().__init__(*expressions, **extra)
321
322 def as_postgresql(self, compiler, connection, **extra_context):
323 clone = self.copy()

Callers

nothing calls this directly

Calls 2

_handle_paramMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected