示例#1
0
文件: post.py 项目: Python3pkg/Misago
 def set_search_document(self, thread_title=None):
     if thread_title:
         self.search_document = filter_search('\n\n'.join(
             [thread_title, self.original]))
     else:
         self.search_document = filter_search(self.original)
示例#2
0
 def set_search_document(self, thread_title=None):
     if thread_title:
         self.search_document = filter_search('\n\n'.join([thread_title, self.original]))
     else:
         self.search_document = filter_search(self.original)