media_home: order comments by ascending date.
This commit is contained in:
parent
e62fc61194
commit
1a3138addd
@ -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()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user