This should probably be `request.GET.get('q', '')`