12 lines
328 B
Python
12 lines
328 B
Python
from dal import autocomplete
|
|
|
|
from shared.autocomplete import ModelSearch
|
|
|
|
|
|
class Select2QuerySetView(ModelSearch, autocomplete.Select2QuerySetView):
|
|
"""Compatibility layer between ModelSearch and Select2QuerySetView."""
|
|
|
|
def get_queryset(self):
|
|
keywords = self.q.split()
|
|
return super().search(keywords)
|