MCPcopy
hub / github.com/django/django / __getstate__

Method __getstate__

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

Source from the content-addressed store, hash-verified

383 return obj
384
385 def __getstate__(self):
386 # Force the cache to be fully populated.
387 self._fetch_all()
388 return {**self.__dict__, DJANGO_VERSION_PICKLE_KEY: django.__version__}
389
390 def __setstate__(self, state):
391 pickled_version = state.get(DJANGO_VERSION_PICKLE_KEY)

Callers

nothing calls this directly

Calls 1

_fetch_allMethod · 0.95

Tested by

no test coverage detected