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

Method prepare

haystack/fields.py:419–420  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

417 super().__init__(**kwargs)
418
419 def prepare(self, obj):
420 return self.convert(super().prepare(obj))
421
422 def convert(self, value):
423 if value is None:

Callers 2

test_prepareMethod · 0.95

Calls 2

convertMethod · 0.95
prepareMethod · 0.45

Tested by 2

test_prepareMethod · 0.76