forked from DGNum/gestioCOF
1
0
Fork 0

Forgot a warning

This commit is contained in:
Ludovic Stephan 2021-02-28 02:56:12 +01:00
parent f9958e4da0
commit b72ea9ebf9
1 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,8 @@ from shared.autocomplete import ModelSearch
class Select2QuerySetView(ModelSearch, autocomplete.Select2QuerySetView):
"""Compatibility layer between ModelSearch and Select2QuerySetView."""
paginate_by = None
def get_queryset(self):
keywords = self.q.split()
return super().search(keywords)