Exemple #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())))
Exemple #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())))
Exemple #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)))
Exemple #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())))
Exemple #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))
Exemple #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))
Exemple #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())))