(field)
return False
Check if current field is a checkbox
Check if current field is a checkbox
Check if current field is a checkbox
def is_checkbox(field):
    "Check if current field is a checkbox"

    try:
        state = isinstance(field.field.widget, CheckboxInput)
        return state
    except Exception as exc:
        logger.error(exc)

    return False
def is_checkbox ( field ) : try : state = isinstance ( field . field . widget , CheckboxInput ) return state except Exception as exc : logger . error ( exc ) return False