Replace this line with "isinstance(field.field.widget, forms.HiddenInput)" if #38 is merged.