MCPcopy
hub / github.com/django/django / set_extra_mask

Method set_extra_mask

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

Set the mask of extra select items that will be returned by SELECT. Don't remove them from the Query since they might be used later.

(self, names)

Source from the content-addressed store, hash-verified

2570 self.set_annotation_mask(self.annotation_select_mask.union(names))
2571
2572 def set_extra_mask(self, names):
2573 """
2574 Set the mask of extra select items that will be returned by SELECT.
2575 Don't remove them from the Query since they might be used later.
2576 """
2577 if names is None:
2578 self.extra_select_mask = None
2579 else:
2580 self.extra_select_mask = set(names)
2581 self._extra_select_cache = None
2582
2583 @property
2584 def has_select_fields(self):

Callers 3

combineMethod · 0.95
clear_select_clauseMethod · 0.95
set_valuesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected