media_home: order comments by ascending date.
authorPablo J. Urbano Santos <flamma@member.fsf.org>
Sat, 19 Nov 2011 18:15:41 +0000 (19:15 +0100)
committerPablo J. Urbano Santos <flamma@member.fsf.org>
Sat, 19 Nov 2011 18:15:41 +0000 (19:15 +0100)
mediagoblin/user_pages/views.py

index 82865bb412ffc722a9ef9e3172f639184abcc366..98a21bb45a51c631515e6dfa2c2e69e6cf65bc9b 100644 (file)
@@ -106,11 +106,11 @@ def media_home(request, media, page, **kwargs):
     """
     if ObjectId(request.matchdict.get('comment')):
         pagination = Pagination(
-            page, media.get_comments(), MEDIA_COMMENTS_PER_PAGE,
+            page, media.get_comments(True), MEDIA_COMMENTS_PER_PAGE,
             ObjectId(request.matchdict.get('comment')))
     else:
         pagination = Pagination(
-            page, media.get_comments(), MEDIA_COMMENTS_PER_PAGE)
+            page, media.get_comments(True), MEDIA_COMMENTS_PER_PAGE)
 
     comments = pagination()