Ticket #9203: 9203.diff

File 9203.diff, 665 bytes (added by Thejaswi Puthraya, 16 years ago)

git-patch of the latest checkout

  • django/contrib/comments/feeds.py

    diff --git a/django/contrib/comments/feeds.py b/django/contrib/comments/feeds.py
    index 232fe29..d01449c 100644
    a b class LatestCommentFeed(Feed):  
    3131            where = ['user_id NOT IN (SELECT user_id FROM auth_users_group WHERE group_id = %s)']
    3232            params = [settings.COMMENTS_BANNED_USERS_GROUP]
    3333            qs = qs.extra(where=where, params=params)
    34         return qs[:40]
     34        return qs.order_by('-submit_date')[:40]
    3535       
    3636    def item_pubdate(self, item):
    37         return item.submit_date
    38  No newline at end of file
     37        return item.submit_date
Back to Top