@property
def is_input_group(self):
    allowed_widget_types = (TextInput, PasswordInput, DateInput, NumberInput, Select, EmailInput, URLInput)
    return ((self.addon_before or self.addon_after) and isinstance(self.widget, allowed_widget_types))
@property
def is_input_group(self):
    allowed_widget_types = (TextInput, PasswordInput, DateInput, NumberInput, Select, EmailInput, URLInput)
    return ((self.addon_before or self.addon_after) and isinstance(self.widget, allowed_widget_types))