code: def optgroups(self, name, value, attrs=None):
          
          if not self.is_required and not self.allow_multiple_selected:
              self.choices = list(chain([('', '')], self.choices))
          return super(Select2Mixin, self).optgroups(name, value, attrs=attrs)
docs: Add empty option for clearable selects.