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

Method prepare

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

Source from the content-addressed store, hash-verified

346 super().__init__(**kwargs)
347
348 def prepare(self, obj):
349 return self.convert(super().prepare(obj))
350
351 def convert(self, value):
352 if value is None:

Callers 1

test_prepareMethod · 0.95

Calls 2

convertMethod · 0.95
prepareMethod · 0.45

Tested by 1

test_prepareMethod · 0.76