def get_search_query(self):
        return self.search_use_q and self.request.GET.get('q', '') or None
Get query from request.GET 'q' parameter when search_use_q is set to True
dataset/ETHPy150Open AndrewIngram/django-extra-views/extra_views/contrib/mixins.py/SearchableListMixin.get_search_query