def get_queryset(self):
        qs = super(BaseQuerySetView, self).get_queryset()

        if self.q:
            qs = qs.filter(name__icontains=self.q)

        return qs
Filter the queryset with GET['q'].
dataset/ETHPy150Open yourlabs/django-autocomplete-light/src/dal/views.py/BaseQuerySetView.get_queryset