aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo J. Urbano Santos <flamma@member.fsf.org>2011-11-19 19:15:41 +0100
committerPablo J. Urbano Santos <flamma@member.fsf.org>2011-11-19 19:15:41 +0100
commit1a3138addd43d410b03cdd1816e0a62bd217de30 (patch)
tree20791135533c89958d205df7c04a602db9c9376d
parente62fc61194508ed5233cdc78e90747450343616f (diff)
downloadmediagoblin-1a3138addd43d410b03cdd1816e0a62bd217de30.tar.lz
mediagoblin-1a3138addd43d410b03cdd1816e0a62bd217de30.tar.xz
mediagoblin-1a3138addd43d410b03cdd1816e0a62bd217de30.zip
media_home: order comments by ascending date.
-rw-r--r--mediagoblin/user_pages/views.py4
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()