editlive.adaptors.boolean – Boolean Adaptor

class editlive.adaptors.boolean.BooleanAdaptor(*args, **kwargs)[source]

Bases: editlive.adaptors.base.BaseAdaptor

The BooleanAdaptor is used for BooleanField.

Note

Not tested with NullBooleanField.

get_value()[source]

Instead of returning True or False we return ‘on’ or ‘off’