Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #9203: Restore correct ordering for LatestCommentsFeed

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9088 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit cc72e64e19f57954f86e866d245aff9c52bde642 1 parent 15b0158
James Bennett authored September 28, 2008

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/contrib/comments/feeds.py
4  django/contrib/comments/feeds.py
@@ -31,7 +31,7 @@ def items(self):
31 31
             where = ['user_id NOT IN (SELECT user_id FROM auth_users_group WHERE group_id = %s)']
32 32
             params = [settings.COMMENTS_BANNED_USERS_GROUP]
33 33
             qs = qs.extra(where=where, params=params)
34  
-        return qs[:40]
  34
+        return qs.order_by('-submit_date')[:40]
35 35
         
36 36
     def item_pubdate(self, item):
37  
-        return item.submit_date
  37
+        return item.submit_date

0 notes on commit cc72e64

Please sign in to comment.
Something went wrong with that request. Please try again.