django-advanced-filters icon indicating copy to clipboard operation
django-advanced-filters copied to clipboard

The operator "One of" should allow multi-selection

Open asfaltboy opened this issue 9 years ago • 2 comments

We currently engage the prepopulated easy-select2 allowing only a single choice.

asfaltboy avatar Apr 21 '16 07:04 asfaltboy

When I try the 'One of' in django 1.6, it selects the regex operator, is this the same problem you're having? You can check this in the console, the selected operator is logged.

JVanloofsvelt avatar Aug 02 '16 08:08 JVanloofsvelt

I think I meant this as more of an enhancement than a bug. The idea is that "one of" operator should (re-) initialize the select2 widget with the "multiple selection" option. E.g by calling select2 constructor with the multiple option:

input.select2({'data': data, 'multiple': true, 'createSearchChoice': function(term) {
  return { 'id': term, 'text': term }
}});

asfaltboy avatar Aug 19 '16 16:08 asfaltboy