[Django]-Django-haystack: object has no attribute 'Indexable'

4👍

Code is based on haystack 2 which is in development, v2 changes the way indexes are defined. Installed version is 1.2 so the correct documents are available here, e.g.

class BayModelIndex(indexes.SearchIndex, indexes.Indexable):

should be (with correct import of SearchIndex):

class BayModelIndex(SearchIndex):

also instead of get_model, the index class needs index_queryset defined, which should return a QuerySet.

👤JamesO

Leave a comment