示例#1
0
 def get_search_index_string(self):
     """
     Returns a string that can be indexed for the search.
     """
     return " ".join((self.title or '', self.text or '', self.reason
                      or '', str(self.category) if self.category else '',
                      user_name_helper(self.submitters.all()),
                      user_name_helper(self.supporters.all()),
                      " ".join(tag.name for tag in self.tags.all())))
示例#2
0
 def get_search_index_string(self):
     """
     Returns a string that can be indexed for the search.
     """
     return " ".join((
         self.title or '',
         self.text or '',
         self.reason or '',
         str(self.category) if self.category else '',
         user_name_helper(self.submitters.all()),
         user_name_helper(self.supporters.all()),
         " ".join(tag.name for tag in self.tags.all())))
示例#3
0
 def get_search_index_string(self):
     """
     Returns a string that can be indexed for the search.
     """
     return " ".join((
         self.title,
         user_name_helper(self.uploader)))
示例#4
0
 def get_search_index_string(self):
     """
     Returns a string that can be indexed for the search.
     """
     return " ".join((self.title, self.description,
                      user_name_helper(self.related_users.all()),
                      " ".join(tag.name for tag in self.tags.all())))
示例#5
0
 def get_search_index_string(self):
     """
     Returns a string that can be indexed for the search.
     """
     return " ".join((
         user_name_helper(self),
         self.structure_level,
         self.about_me))
示例#6
0
 def get_search_index_string(self):
     """
     Returns a string that can be indexed for the search.
     """
     return " ".join((
         user_name_helper(self),
         self.structure_level,
         self.about_me))
示例#7
0
 def get_search_index_string(self):
     """
     Returns a string that can be indexed for the search.
     """
     return " ".join((
         self.title,
         self.description,
         user_name_helper(self.related_users.all()),
         " ".join(tag.name for tag in self.tags.all())))