Skip to content

Commit

Permalink
Merge pull request #11441 from camptocamp/backport/11401-to-master
Browse files Browse the repository at this point in the history
[Backport master] Fix missing columns in group by
  • Loading branch information
sbrunner authored Oct 10, 2024
2 parents c596a14 + 258623d commit bff6133
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 bff6133

Please sign in to comment.