1👍
✅
The error is in the class attribute. Just replace SearchField
by SearchIndex
in the class attributes, change:
class CustomerIndex(indexes.SearchField, indexes.Indexable):
to:
class CustomerIndex(indexes.SearchIndex, indexes.Indexable):
0👍
Another reason that could cause that is using normal drf’s default ModelViewSet
instead of HaystackViewSet
- [Answer]-Django check if reverse lookups exist in the table
- [Answer]-JQuery Tooltip effects not working
- [Answer]-Django sql use regex to check the phone number
Source:stackexchange.com