def get_data_attrs(self, option_label):
    other_html = []
    if (not isinstance(option_label, (six.string_types, Promise))):
        for data_attr in self.data_attrs:
            data_value = html.conditional_escape(force_text(getattr(option_label, data_attr, '')))
            other_html.append(('data-%s="%s"' % (data_attr, data_value)))
    return ' '.join(other_html)
def get_data_attrs(self, option_label):
    other_html = []
    if (not isinstance(option_label, (six.string_types, Promise))):
        for data_attr in self.data_attrs:
            data_value = html.conditional_escape(force_text(getattr(option_label, data_attr, )))
            other_html.append(('data-%s="%s"' % (data_attr, data_value)))
    return ' '.join(other_html)