Mercurial > public > sg101
diff gpp/news/feeds.py @ 204:b4305e18d3af
Resolve ticket #74. Add user badges. Some extra credit was done here: also refactored how pending news, links, and downloads are handled.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 01 May 2010 21:53:59 +0000 |
parents | 9b63ad1f2ad2 |
children |
line wrap: on
line diff
--- a/gpp/news/feeds.py Wed Apr 28 03:00:31 2010 +0000 +++ b/gpp/news/feeds.py Sat May 01 21:53:59 2010 +0000 @@ -22,7 +22,7 @@ return copyright_str() def items(self): - return Story.objects.order_by('-date_published')[:5] + return Story.objects.order_by('-date_submitted')[:5] def item_title(self, item): return item.title @@ -34,7 +34,7 @@ return get_full_name(item.submitter) def item_pubdate(self, item): - return item.date_published + return item.date_submitted def item_categories(self, item): return (item.category.title, )