MCPcopy
hub / github.com/django/django / output_field

Method output_field

django/db/models/expressions.py:326–333  ·  view source on GitHub ↗

Return the output type of this expressions.

(self)

Source from the content-addressed store, hash-verified

324
325 @cached_property
326 def output_field(self):
327 """Return the output type of this expressions."""
328 output_field = self._resolve_output_field()
329 if output_field is None:
330 raise OutputFieldIsNoneError(
331 "Cannot resolve expression type, unknown output_field"
332 )
333 return output_field
334
335 @property
336 def _output_field_or_none(self):

Callers

nothing calls this directly

Calls 2

_resolve_output_fieldMethod · 0.95

Tested by

no test coverage detected