Answer the question
In order to leave comments, you need to log in
How to use queryset in SearchQuerySet haystack query?
How to check the following:
queryset = Table.objects.filter(table_field = field)
SearchQuerySet().filter(table_field = queryset)
Answer the question
In order to leave comments, you need to log in
I, of course, may be a necroposter, but it seems to me that this should be done as follows (suddenly someone will find this answer useful):
table_ids = Table.objects.filter(table_field = field).values_list('id', flat=True)
SearchQuerySet().filter(table_field__in = table_ids)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question