From 9b1424e08d23a4aba35f35b2f6a9c9ee53b09caf Mon Sep 17 00:00:00 2001 From: Tadas Dailyda Date: Fri, 27 Feb 2015 00:44:16 +0000 Subject: [PATCH] django 16 compatibility --- djangocms_blog/menu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangocms_blog/menu.py b/djangocms_blog/menu.py index 69c990f..a6e3b6e 100644 --- a/djangocms_blog/menu.py +++ b/djangocms_blog/menu.py @@ -13,7 +13,7 @@ class BlogCategoryMenu(CMSAttachMenu): def get_nodes(self, request): nodes = [] qs = BlogCategory.objects.translated(get_language()) - qs = qs.order_by('parent_id', 'translations__name') + qs = qs.order_by('parent__id', 'translations__name') for category in qs: kwargs = { 'category': category.slug } node = NavigationNode(