media_home: order comments by ascending date.

This commit is contained in:
Pablo J. Urbano Santos 2011-11-19 19:15:41 +01:00
parent e62fc61194
commit 1a3138addd

View File

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