Jump to >

reviewboard.search.fields

Custom search index fields.

class BooleanField(**kwargs)[source]

Bases: haystack.fields.BooleanField

A custom BooleanField.

This works around an issue in django-haystack that results in BooleanFields always returning True.

value_map = {u'false': False, u'true': True}[source]
convert(value)[source]

Convert value to a boolean value.

Parameters:value (unicode) – The value to convert
Returns:The boolean representation of value.
Return type:bool