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

Method convert

haystack/fields.py:467–474  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

465 return self.convert(super().prepare(obj))
466
467 def convert(self, value):
468 if value is None:
469 return None
470
471 if hasattr(value, "__iter__") and not isinstance(value, str):
472 return value
473
474 return [value]
475
476
477class FacetField(SearchField):

Calls

no outgoing calls