Skip to content

Commit

Permalink
Fix missing columns in group by
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-morvan committed Oct 7, 2024
1 parent efe8580 commit 258623d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/c2cgeoportal_admin/schemas/treegroup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)

Expand Down

0 comments on commit 258623d

Please sign in to comment.