Commits

Anonymous committed 8e2021c

Fixed model referencing in haystack support

  • Participants
  • Parent commits e89b710

Comments (0)

Files changed (1)

File gnocchi/blog/search_indexes.py

     text = CharField(document=True, use_template=True)
     title = CharField(model_attr='title')
 
-site.register(Post, PostIndex)
+site.register(models.Post, PostIndex)
 
 class CommentIndex(SearchIndex):
     text = CharField(document=True, use_template=True)
 
-site.register(Comment, CommentIndex)
+site.register(models.Comment, CommentIndex)