Commits

Javed Khan committed ae150c9

fixes #66: indenx rendered message

Comments (0)

Files changed (1)

dinette/search_indexes.py

 class TopicIndex(indexes.SearchIndex):
     text = indexes.CharField(document=True, use_template=True)
     subject = indexes.CharField(model_attr="subject")
-    message = indexes.CharField(model_attr="message")
+    message = indexes.CharField(model_attr="_message_rendered")
     
 class ReplyIndex(indexes.SearchIndex):
     text = indexes.CharField(document=True, use_template=True)
-    message = indexes.CharField(model_attr="message")
+    message = indexes.CharField(model_attr="_message_rendered")
     
 class UserprofileIndex(indexes.SearchIndex):
     text = indexes.CharField(document=True, use_template=True)