# HG changeset patch # User neko259 # Date 2013-12-10 09:51:01 # Node ID 4208d50c8d3bb266906e05cbb5573e3d953884f8 # Parent 3bcc60e793317f6c7858a77f8880b5acc16f4ac3 Fixed thread order in the RSS diff --git a/boards/rss.py b/boards/rss.py --- a/boards/rss.py +++ b/boards/rss.py @@ -15,7 +15,7 @@ class AllThreadsFeed(Feed): description_template = 'boards/rss/post.html' def items(self): - return Post.objects.get_threads() # TODO Order this by OP's pub time + return Post.objects.get_threads(order_by='-id') def item_title(self, item): return item.get_opening_post().title @@ -33,7 +33,7 @@ class TagThreadsFeed(Feed): description_template = 'boards/rss/post.html' def items(self, obj): - return Post.objects.get_threads(tag=obj) # TODO Order this by OP's pub time + return Post.objects.get_threads(tag=obj, order_by='-id') def get_object(self, request, tag_name): return get_object_or_404(Tag, name=tag_name)