Mercurial > public > sg101
diff gpp/forums/unread.py @ 168:e6d4dfdfbc64
Implemented a view to display topics with unanswered posts. This is for ticket #54.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 26 Jan 2010 04:10:11 +0000 |
parents | cf9f9d4c4d54 |
children | d77e0dc772ad |
line wrap: on
line diff
--- a/gpp/forums/unread.py Sun Jan 24 22:33:11 2010 +0000 +++ b/gpp/forums/unread.py Tue Jan 26 04:10:11 2010 +0000 @@ -221,7 +221,8 @@ else: flv = flvs[forum.id] topics |= Topic.objects.filter(forum=forum, - update_date__gt=flv.begin_date).order_by('-update_date').select_related() + update_date__gt=flv.begin_date).order_by('-update_date').select_related( + 'forum', 'user', 'last_post', 'last_post__user') if topics is not None: # get all topic last visit records for the topics of interest