Ejemplo 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())))
Ejemplo 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())))
Ejemplo 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)))
Ejemplo 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())))
Ejemplo 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))
Ejemplo 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))
Ejemplo 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())))