def _format_value(self, value):
        value = value[0]
        try:
            value = {True: '2', False: '3', '2': '2', '3': '3'}[value]
        except __HOLE__:
            value = '1'
        return value
dataset/ETHPy150Open gregmuellegger/django-floppyforms/floppyforms/widgets.py/NullBooleanSelect._format_value