Sometimes it desired to have a possibility to create case-sensitive options Select2QuerySetView.
For example image a situation when you are trying to use Select2QuerySetView to choose a unit (e.g. file size).
These units are case-sensitive MB vs Mb. In current implementation it is not possible to create both Mb and MB in the search field.
This patch makes it easier to achieve such functionality by overriding Select2QuerySetView.
class CustomSelect2QuerySetView(Select2QuerySetView):
case_sensitive_create = True
Sometimes it desired to have a possibility to create case-sensitive options Select2QuerySetView.
For example image a situation when you are trying to use Select2QuerySetView to choose a unit (e.g. file size). These units are case-sensitive
MB
vsMb
. In current implementation it is not possible to create bothMb
andMB
in the search field.This patch makes it easier to achieve such functionality by overriding Select2QuerySetView.