MCPcopy
hub / github.com/django/django / get_col

Method get_col

django/db/models/fields/composite.py:110–116  ·  view source on GitHub ↗
(self, alias, output_field=None)

Source from the content-addressed store, hash-verified

108 return ColPairs(self.model._meta.db_table, self.fields, self.fields, self)
109
110 def get_col(self, alias, output_field=None):
111 if alias == self.model._meta.db_table and (
112 output_field is None or output_field == self
113 ):
114 return self.cached_col
115
116 return ColPairs(alias, self.fields, self.fields, output_field)
117
118 def get_pk_value_on_save(self, instance):
119 values = []

Callers

nothing calls this directly

Calls 1

ColPairsClass · 0.90

Tested by

no test coverage detected