From abb31ce836d051abab4f89af18d36a113c3e5520 Mon Sep 17 00:00:00 2001 From: Emilie Date: Fri, 21 Oct 2016 15:44:31 +0200 Subject: [PATCH] Task #267: page order --- app/organization/core/templatetags/organization_tags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/organization/core/templatetags/organization_tags.py b/app/organization/core/templatetags/organization_tags.py index a1ce4cd6..683e37e9 100644 --- a/app/organization/core/templatetags/organization_tags.py +++ b/app/organization/core/templatetags/organization_tags.py @@ -20,7 +20,7 @@ def subtract(value, arg): @register.as_tag def children_pages(page_id): - childrens = Page.objects.filter(parent_id=page_id) + childrens = Page.objects.filter(parent_id=page_id).order_by('_order') if childrens: return childrens return None -- 2.39.5