Jump to >

This documentation covers the in-development release of Review Board. You can see the latest stable docs or all previous versions.


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 to a boolean value.

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