Select2 IntegrationΒΆ
django-addanother provides optional lightweight integration with django-select2.
Usage example:
from django_addanother.contrib.select2 import Select2AddAnother
class FooForm(forms.ModelForm):
class Meta:
...
widgets = {
'sender': Select2AddAnother(reverse_lazy('person_create')),
}
See Select2 Widgets Reference for a list of provided widgets.