[Answered ]-Filter haystack result with SearchQuerySet


Are you sure that the “user” in your Haystack index holds the integer value of user id? Perhaps it has some other user data(such as username) there, so the comparison simply does not work?

By default the Django user object returns the user name, not the user id.


Leave a comment