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

Method __init__

django/contrib/gis/db/models/functions.py:248–257  ·  view source on GitHub ↗
(self, expression, relative=False, precision=8, **extra)

Source from the content-addressed store, hash-verified

246 output_field = TextField()
247
248 def __init__(self, expression, relative=False, precision=8, **extra):
249 relative = (
250 relative if hasattr(relative, "resolve_expression") else int(relative)
251 )
252 expressions = [
253 expression,
254 relative,
255 self._handle_param(precision, "precision", int),
256 ]
257 super().__init__(*expressions, **extra)
258
259
260class AsWKB(GeoFunc):

Callers

nothing calls this directly

Calls 2

_handle_paramMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected