def build_attrs(self, extra_attrs=None, **kwargs):
        self.attrs.setdefault('data-minimum-input-length', 1)
        self.attrs.setdefault('data-tags', 'true')
        self.attrs.setdefault('data-token-separators', '[",", " "]')
        return super(Select2TagMixin, self).build_attrs(extra_attrs, **kwargs)
Add select2's tag attributes.
dataset/ETHPy150Open applegrew/django-select2/django_select2/forms.py/Select2TagMixin.build_attrs