MCPcopy
hub / github.com/django/django / get_extra_select

Method get_extra_select

django/db/models/sql/compiler.py:540–548  ·  view source on GitHub ↗
(self, order_by, select)

Source from the content-addressed store, hash-verified

538 return result
539
540 def get_extra_select(self, order_by, select):
541 extra_select = []
542 if self.query.distinct and not self.query.distinct_fields:
543 select_sql = [t[1] for t in select]
544 for expr, (sql, params, is_ref) in order_by:
545 without_ordering = self.ordering_parts.search(sql)[1]
546 if not is_ref and (without_ordering, params) not in select_sql:
547 extra_select.append((expr, (without_ordering, params), None))
548 return extra_select
549
550 def quote_name(self, name):
551 """

Callers 1

pre_sql_setupMethod · 0.95

Calls 2

searchMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected