Closed
Description
I need to add
createSearchChoice: function(term, data) {
if ($(data).filter(function() {return this.text.localeCompare(term)===0; }).length===0) {
return {id:term, text:term};
}
}
So that I can add stuff, not only select the already existing. Also, I haven't been able to add an initial value to django-select2 form fields.
Are this two things supposed to work but I'm not getting, are bugs or are they not possible?