Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
@ubernostrum ubernostrum authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/comments/feeds.py
View
4 django/contrib/comments/feeds.py
@@ -31,7 +31,7 @@ def items(self):
where = ['user_id NOT IN (SELECT user_id FROM auth_users_group WHERE group_id = %s)']
params = [settings.COMMENTS_BANNED_USERS_GROUP]
qs = qs.extra(where=where, params=params)
- return qs[:40]
+ return qs.order_by('-submit_date')[:40]
def item_pubdate(self, item):
- return item.submit_date
+ return item.submit_date
Please sign in to comment.
Something went wrong with that request. Please try again.