MCPcopy Create free account
hub / github.com/django-haystack/django-haystack / __setstate__

Method __setstate__

haystack/backends/__init__.py:521–526  ·  view source on GitHub ↗

For unpickling.

(self, obj_dict)

Source from the content-addressed store, hash-verified

519 return obj_dict
520
521 def __setstate__(self, obj_dict):
522 """For unpickling."""
523 from haystack import connections
524
525 self.__dict__.update(obj_dict)
526 self.backend = connections[self._using].get_backend()
527
528 def has_run(self):
529 """Indicates if any query has been been run."""

Callers

nothing calls this directly

Calls 2

updateMethod · 0.45
get_backendMethod · 0.45

Tested by

no test coverage detected