2
You receiving this error message because in Django >= 1.6 Options.module_name changed to .model_name (this is widley abused non-public API) so you just need change in haystack code module_name
0
You have to check that you have an attribute named “name” in your models.
models.py
class Page(models.Model):
name = models.CharField(max_length=20)
search_index.py
class PageIndex(indexes.SearchIndex, indexes.Indexable):
name = fields.EdgeNgramField(model_attr='name', boost=2)
- [Answered ]-No module name books
- [Answered ]-NoReverseMatch at /
- [Answered ]-Manager isn't accessible via SocialToken instances
- [Answered ]-Django : delete multiple sessions without 'for loop'
- [Answered ]-Problems with custom user model
Source:stackexchange.com