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

Method __init__

django/contrib/gis/db/backends/postgis/operations.py:108–114  ·  view source on GitHub ↗
(self, expr)

Source from the content-addressed store, hash-verified

106 function = "ST_Polygon"
107
108 def __init__(self, expr):
109 super().__init__(expr)
110 expr = self.source_expressions[0]
111 if isinstance(expr, Value) and not expr._output_field_or_none:
112 self.source_expressions[0] = Value(
113 expr.value, output_field=RasterField(srid=expr.value.srid)
114 )
115
116 @cached_property
117 def output_field(self):

Callers 1

__init__Method · 0.45

Calls 2

ValueClass · 0.90
RasterFieldClass · 0.90

Tested by

no test coverage detected