MCPcopy
hub / github.com/django/django / clear_select_fields

Method clear_select_fields

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

Clear the list of fields to select (but not extra_select columns). Some queryset types completely replace any existing list of select columns.

(self)

Source from the content-addressed store, hash-verified

2239 self.selected = None
2240
2241 def clear_select_fields(self):
2242 """
2243 Clear the list of fields to select (but not extra_select columns).
2244 Some queryset types completely replace any existing list of select
2245 columns.
2246 """
2247 self.select = ()
2248 self.values_select = ()
2249 self.selected = None
2250
2251 def add_select_col(self, col, name):
2252 self.select += (col,)

Callers 1

set_valuesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected