Esempio n. 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())))
Esempio n. 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())))
Esempio n. 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)))
Esempio n. 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())))
Esempio n. 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))
Esempio n. 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))
Esempio n. 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())))