MCPcopy
hub / github.com/django/django / get_external_cols

Method get_external_cols

django/db/models/sql/query.py:1289–1295  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1287 return clone
1288
1289 def get_external_cols(self):
1290 exprs = chain(self.annotations.values(), self.where.children)
1291 return [
1292 col
1293 for col in self._gen_cols(exprs, include_external=True)
1294 if col.alias in self.external_aliases
1295 ]
1296
1297 def get_group_by_cols(self, wrapper=None):
1298 # If wrapper is referenced by an alias for an explicit GROUP BY through

Callers 2

get_group_by_colsMethod · 0.95
_gen_colsMethod · 0.45

Calls 2

_gen_colsMethod · 0.95
valuesMethod · 0.45

Tested by

no test coverage detected