Hello and thank you for the nice package,
I am receiving the following error:
'QuerySet' object has no attribute 'strip'
here s the piece of code:
`def get_queryset(self):
queryset = Contributor.objects.all()
q = self.request.query_params.get('q')
print(q)
if q:
queryset = queryset.filter(program_name=q)
new_qs = watson.search(queryset, q)
return new_qs
return queryset
`
I use django-watson in django rest framework project to improve the search functionality and finding the similar results.
I appreciate if you can have a look and help me out.
Hello and thank you for the nice package, I am receiving the following error: 'QuerySet' object has no attribute 'strip'
here s the piece of code: `def get_queryset(self): queryset = Contributor.objects.all() q = self.request.query_params.get('q') print(q) if q: queryset = queryset.filter(program_name=q) new_qs = watson.search(queryset, q) return new_qs
` I use django-watson in django rest framework project to improve the search functionality and finding the similar results. I appreciate if you can have a look and help me out.
Warm Regards Massoud