Mercurial > public > sg101
diff gpp/forums/models.py @ 414:b1f939b1fb01
Fixing #204; added the ability to search on forum topics.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 09 Apr 2011 19:20:12 +0000 |
parents | 42a4e66972d5 |
children | c8148cf11a79 |
line wrap: on
line diff
--- a/gpp/forums/models.py Thu Apr 07 23:52:18 2011 +0000 +++ b/gpp/forums/models.py Sat Apr 09 19:20:12 2011 +0000 @@ -259,6 +259,12 @@ except Post.DoesNotExist: self.last_post = None + def search_title(self): + return u"%s by %s" % (self.name, self.user.username) + + def search_summary(self): + return u'' + class Post(models.Model): """