Author: ubernostrum
Date: 2008-09-27 21:50:09 -0500 (Sat, 27 Sep 2008)
New Revision: 9088

Modified:
   django/trunk/django/contrib/comments/feeds.py
Log:
Fixed #9203: Restore correct ordering for LatestCommentsFeed


Modified: django/trunk/django/contrib/comments/feeds.py
===================================================================
--- django/trunk/django/contrib/comments/feeds.py       2008-09-27 06:14:11 UTC 
(rev 9087)
+++ django/trunk/django/contrib/comments/feeds.py       2008-09-28 02:50:09 UTC 
(rev 9088)
@@ -31,7 +31,7 @@
             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
\ No newline at end of file
+        return item.submit_date


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to