From 258623d06ee801bceadc2e482972202db2f5acee Mon Sep 17 00:00:00 2001 From: "arnaud.morvan@camptocamp.com" Date: Tue, 1 Oct 2024 15:37:49 +0200 Subject: [PATCH] Fix missing columns in group by --- admin/c2cgeoportal_admin/schemas/treegroup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/c2cgeoportal_admin/schemas/treegroup.py b/admin/c2cgeoportal_admin/schemas/treegroup.py index 4f1de4a341..ea47cb501d 100644 --- a/admin/c2cgeoportal_admin/schemas/treegroup.py +++ b/admin/c2cgeoportal_admin/schemas/treegroup.py @@ -82,7 +82,7 @@ def treeitems( .distinct() .outerjoin(TreeItem.parents_relation) .filter(TreeItem.item_type != "theme") - .group_by(TreeItem.id) + .group_by(TreeItem) .order_by(group.desc(), TreeItem.name) )