Fixed #9203: Restore correct ordering for LatestCommentsFeed
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9088 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
15b0158e39
commit
cc72e64e19
|
@ -31,7 +31,7 @@ class LatestCommentFeed(Feed):
|
||||||
where = ['user_id NOT IN (SELECT user_id FROM auth_users_group WHERE group_id = %s)']
|
where = ['user_id NOT IN (SELECT user_id FROM auth_users_group WHERE group_id = %s)']
|
||||||
params = [settings.COMMENTS_BANNED_USERS_GROUP]
|
params = [settings.COMMENTS_BANNED_USERS_GROUP]
|
||||||
qs = qs.extra(where=where, params=params)
|
qs = qs.extra(where=where, params=params)
|
||||||
return qs[:40]
|
return qs.order_by('-submit_date')[:40]
|
||||||
|
|
||||||
def item_pubdate(self, item):
|
def item_pubdate(self, item):
|
||||||
return item.submit_date
|
return item.submit_date
|
Loading…
Reference in New Issue