def render(self, name, value, attrs=None):
        try:
            value = {
                True: 'true',
                False: 'false',
                '1': 'true',
                '0': 'false'
            }[value]
        except __HOLE__:
            value = ''
        return super(BooleanWidget, self).render(name, value, attrs)
dataset/ETHPy150Open carltongibson/django-filter/django_filters/widgets.py/BooleanWidget.render