MCPcopy
hub / github.com/django/django / __bool__

Method __bool__

django/db/models/query.py:447–449  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

445 return generator()
446
447 def __bool__(self):
448 self._fetch_all()
449 return bool(self._result_cache)
450
451 def __getitem__(self, k):
452 """Retrieve an item or slice from the set of results."""

Callers

nothing calls this directly

Calls 1

_fetch_allMethod · 0.95

Tested by

no test coverage detected