django 16 compatibility
This commit is contained in:
parent
ba1c46a2fe
commit
9b1424e08d
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ class BlogCategoryMenu(CMSAttachMenu):
|
||||||
def get_nodes(self, request):
|
def get_nodes(self, request):
|
||||||
nodes = []
|
nodes = []
|
||||||
qs = BlogCategory.objects.translated(get_language())
|
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:
|
for category in qs:
|
||||||
kwargs = { 'category': category.slug }
|
kwargs = { 'category': category.slug }
|
||||||
node = NavigationNode(
|
node = NavigationNode(
|
||||||
|
|
Loading…
Reference in a new issue