django 16 compatibility

This commit is contained in:
Tadas Dailyda 2015-02-27 00:44:16 +00:00
parent ba1c46a2fe
commit 9b1424e08d
1 changed files with 1 additions and 1 deletions

View File

@ -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(