i think you want: `isinstance(field.field.widget, CheckboxInput`