code: def create_option(
              self, name, value, label, selected, index,
              subindex=None, attrs=None):
          
          index = str(index) if subindex is None else "%s%s%s" % (
              index, self.id_separator, subindex)
          if attrs is None:
              attrs = {}
          option_attrs = self.build_attrs(
              self.attrs, attrs) if self.option_inherits_attrs else {}
          if selected:
              option_attrs.update(self.checked_attribute)
          if 'id' in option_attrs:
              if self.use_nice_ids:
                  option_attrs['id'] = "%s%s%s" % (
                      option_attrs['id'],
                      self.id_separator,
                      slugify(label.lower())
                      )
              else:
                  option_attrs['id'] = self.id_for_label(
                      option_attrs['id'], index)
          return {
              'name': name,
              'value': value,
              'label': label,
              'selected': selected,
              'index': index,
              'attrs': option_attrs,
              'type': self.input_type,
              'template_name': self.option_template_name,
              'wrap_label': True,
              }
docs: Patch to use nicer ids.