Closed
Description
I didn't find examples in tests which set select2 options.
class FooSelect2Field(django_select2.AutoModelSelect2Field):
queryset = Foo.objects
search_fields = ['name__icontains, ]
station = StationSelect2Field(widget=django_select2.AutoHeavySelect2Widget(select2_options={
'width': '32em',
'placeHolder': _(u"Search foo")
})
will raise an error about missing view so I need to add data_view='django_select2_central_json' to widget init.