comparison gpp/weblinks/models.py @ 220:71fd8454688b

For #51, added weblinks to search. Decided against using the search index to store prerendered results. My fear is this could get too unweildy once we add forums.
author Brian Neal <bgneal@gmail.com>
date Sun, 06 Jun 2010 20:06:15 +0000
parents b4305e18d3af
children 1085dc38399e
comparison
equal deleted inserted replaced
219:26ee684c2033 220:71fd8454688b
58 58
59 @models.permalink 59 @models.permalink
60 def get_absolute_url(self): 60 def get_absolute_url(self):
61 return ('weblinks-link_detail', [str(self.id)]) 61 return ('weblinks-link_detail', [str(self.id)])
62 62
63 def search_title(self):
64 return self.title
65
66 def search_summary(self):
67 return self.description
68
63 69
64 class PendingLink(LinkBase): 70 class PendingLink(LinkBase):
65 """This model represents links that users submit. They must be approved by 71 """This model represents links that users submit. They must be approved by
66 an admin before they become visible on the site. 72 an admin before they become visible on the site.
67 """ 73 """