def add_widget_attrs(self):
    if self.is_multi_widget:
        widgets = self.widget.widgets
    else:
        widgets = [self.widget]
    for widget in widgets:
        self.add_class_attrs(widget)
        self.add_placeholder_attrs(widget)
        self.add_help_attrs(widget)
def add_widget_attrs(self):
    if self.is_multi_widget:
        widgets = self.widget.widgets
    else:
        widgets = [self.widget]
    for widget in widgets:
        self.add_class_attrs(widget)
        self.add_placeholder_attrs(widget)
        self.add_help_attrs(widget)