diff options
author | Pablo J. Urbano Santos <flamma@member.fsf.org> | 2011-11-19 19:15:41 +0100 |
---|---|---|
committer | Pablo J. Urbano Santos <flamma@member.fsf.org> | 2011-11-19 19:15:41 +0100 |
commit | 1a3138addd43d410b03cdd1816e0a62bd217de30 (patch) | |
tree | 20791135533c89958d205df7c04a602db9c9376d | |
parent | e62fc61194508ed5233cdc78e90747450343616f (diff) | |
download | mediagoblin-1a3138addd43d410b03cdd1816e0a62bd217de30.tar.lz mediagoblin-1a3138addd43d410b03cdd1816e0a62bd217de30.tar.xz mediagoblin-1a3138addd43d410b03cdd1816e0a62bd217de30.zip |
media_home: order comments by ascending date.
-rw-r--r-- | mediagoblin/user_pages/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/user_pages/views.py b/mediagoblin/user_pages/views.py index 82865bb4..98a21bb4 100644 --- a/mediagoblin/user_pages/views.py +++ b/mediagoblin/user_pages/views.py @@ -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() |