toastdriven/django-haystack — pull request #956 by tuky (2014-02-25 17:40:08+00:00)
Title: HAYSTACK_ROUTERS don't work with SQS, at all, even with this fix

connection_router has to be re-imported, otherwise it is still the default old value. But the whole routing mechanism still does not work, at all. Simple example SearchQuerySet().models(SomePreferablyIndexedModelClass) never reaches line 49: hints['models'] = self.query.models. It is sad to see, that setting HAYSTACK_ROUTERS has no test code. Ad hoc, I have no idea, what connection should be used for SearchQuerySet(using="some_search_backend_alias").models(SomePreferablyIndexedModelClass)... some_search_backend_alias or the one proposed by the router that caught SomePreferablyIndexedModelClass?