Ticket #9203: feeds.py.diff

File feeds.py.diff, 586 bytes (added by hanksims, 16 years ago)

django/contrib/comments/feeds.py

  • feeds.py

     
    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