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

Method convert

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

Source from the content-addressed store, hash-verified

330 return self.convert(super().prepare(obj))
331
332 def convert(self, value):
333 if value is None:
334 return None
335
336 return float(value)
337
338
339class DecimalField(SearchField):

Callers 1

prepareMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected