MCPcopy Index your code
hub / github.com/django-haystack/django-haystack / __init__

Method __init__

haystack/fields.py:451–462  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

449 field_type = "string"
450
451 def __init__(self, **kwargs):
452 if kwargs.get("facet_class") is None:
453 kwargs["facet_class"] = FacetMultiValueField
454
455 if kwargs.get("use_template") is True:
456 raise SearchFieldError(
457 "'%s' fields can not use templates to prepare their data."
458 % self.__class__.__name__
459 )
460
461 super().__init__(**kwargs)
462 self.is_multivalued = True
463
464 def prepare(self, obj):
465 return self.convert(super().prepare(obj))

Callers

nothing calls this directly

Calls 3

SearchFieldErrorClass · 0.90
getMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected