In Haystack, you can have many different applications and models, so you must also explicitly specify the names for the haystack request, because inside Haystack it will create identifiers like app.model.pk ... For example. you may have a "Catalog" application, inside which you have a "Product" model and want to filter for pk = 12:
SearchQuerySet().filter(pk='catalog.product.12')
will do the trick.
HolgT
source share