Mercurial > public > sg101
diff gpp/downloads/models.py @ 221:8d13baeaa5c1
#51; add downloads to Haystack search.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 06 Jun 2010 20:19:10 +0000 |
parents | 77b606e0ad5f |
children | 27bee3ac85e6 |
line wrap: on
line diff
--- a/gpp/downloads/models.py Sun Jun 06 20:06:15 2010 +0000 +++ b/gpp/downloads/models.py Sun Jun 06 20:19:10 2010 +0000 @@ -113,6 +113,12 @@ self.average_score = total_score / self.total_votes return self.average_score + def search_title(self): + return self.title + + def search_summary(self): + return self.description + class AllowedExtensionManager(models.Manager): def get_extension_list(self):