MCPcopy
hub / github.com/django/django / clear_select_clause

Method clear_select_clause

django/db/models/sql/query.py:2232–2239  ·  view source on GitHub ↗

Remove all fields from SELECT clause.

(self)

Source from the content-addressed store, hash-verified

2230 return not self.is_sliced
2231
2232 def clear_select_clause(self):
2233 """Remove all fields from SELECT clause."""
2234 self.select = ()
2235 self.default_cols = False
2236 self.select_related = False
2237 self.set_extra_mask(())
2238 self.set_annotation_mask(())
2239 self.selected = None
2240
2241 def clear_select_fields(self):
2242 """

Callers 5

get_prep_lookupMethod · 0.80
get_prep_lookupMethod · 0.80
updateMethod · 0.80
as_sqlMethod · 0.80
existsMethod · 0.80

Calls 2

set_extra_maskMethod · 0.95
set_annotation_maskMethod · 0.95

Tested by

no test coverage detected