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

Method __setstate__

haystack/models.py:242–247  ·  view source on GitHub ↗

Updates the object's attributes according to data passed by pickle.

(self, data_dict)

Source from the content-addressed store, hash-verified

240 return ret_dict
241
242 def __setstate__(self, data_dict):
243 """
244 Updates the object's attributes according to data passed by pickle.
245 """
246 self.__dict__.update(data_dict)
247 self.log = self._get_log()
248
249
250def reload_indexes(sender, *args, **kwargs):

Callers

nothing calls this directly

Calls 2

_get_logMethod · 0.95
updateMethod · 0.45

Tested by

no test coverage detected