MCPcopy
hub / github.com/django/django / set_empty

Method set_empty

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

Source from the content-addressed store, hash-verified

2179 return condition, needed_inner
2180
2181 def set_empty(self):
2182 self.where.add(NothingNode(), AND)
2183 for query in self.combined_queries:
2184 query.set_empty()
2185
2186 def is_empty(self):
2187 return any(isinstance(c, NothingNode) for c in self.where.children)

Callers 2

set_limitsMethod · 0.95
noneMethod · 0.80

Calls 2

NothingNodeClass · 0.90
addMethod · 0.45

Tested by

no test coverage detected