[FIX] website_blog: display blog posts in anti-chronological order
This commit is contained in:
@@ -122,7 +122,7 @@ class WebsiteBlog(http.Controller):
|
||||
blog_url = QueryURL('', ['blog', 'tag'], blog=blog, tag=tag, date_begin=date_begin, date_end=date_end)
|
||||
post_url = QueryURL('', ['blogpost'], tag_id=tag and tag.id or None, date_begin=date_begin, date_end=date_end)
|
||||
|
||||
blog_post_ids = blog_post_obj.search(cr, uid, domain, order="create_date asc", context=context)
|
||||
blog_post_ids = blog_post_obj.search(cr, uid, domain, order="create_date desc", context=context)
|
||||
blog_posts = blog_post_obj.browse(cr, uid, blog_post_ids, context=context)
|
||||
|
||||
pager = request.website.pager(
|
||||
|
||||
Reference in New Issue
Block a user