Commits

Javed Khan  committed d7b62c6

refs #66: use rendered message in snippet

  • Participants
  • Parent commits ae150c9

Comments (0)

Files changed (1)

File dinette/models.py

             return ""
         
     def search_snippet(self):
-        msg = "%s %s"% (self.subject, self.message)
+        msg = "%s %s"% (self.subject, self.message.rendered)
         return truncatewords(msg, 50) 
         
     def getTopicString(self):
         return truncatewords(self.message, 10)
     
     def search_snippet(self):
-        msg = "%s %s"%(self.message, self.topic.subject)
+        msg = "%s %s"%(self.message.rendered, self.topic.subject)
         return truncatewords(msg, 100)