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

Method get_col

django/db/models/fields/__init__.py:574–581  ·  view source on GitHub ↗
(self, alias, output_field=None)

Source from the content-addressed store, hash-verified

572 return []
573
574 def get_col(self, alias, output_field=None):
575 if alias == self.model._meta.db_table and (
576 output_field is None or output_field == self
577 ):
578 return self.cached_col
579 from django.db.models.expressions import Col
580
581 return Col(alias, self, output_field)
582
583 @property
584 def choices(self):

Callers 15

get_extra_restrictionMethod · 0.45
__iter__Method · 0.45
get_default_columnsMethod · 0.45
execute_sqlMethod · 0.45
as_sqlMethod · 0.45
execute_returning_sqlMethod · 0.45
_get_colMethod · 0.45
get_aggregationMethod · 0.45
final_transformerMethod · 0.45
split_excludeMethod · 0.45
trim_startMethod · 0.45
test_get_colMethod · 0.45

Calls 1

ColClass · 0.90

Tested by 4

test_get_colMethod · 0.36
test_cached_colMethod · 0.36