Skip to content
Snippets Groups Projects
Commit e9951ab5 authored by Valentin Rigal's avatar Valentin Rigal
Browse files

Merge branch 'restore-order-children' into 'master'

Restore order by ID on Element children list

Closes #602

See merge request !1150
parents 034262bf 11568af6
No related branches found
No related tags found
1 merge request!1150Restore order by ID on Element children list
......@@ -587,7 +587,7 @@ class ElementChildren(ElementsListMixin, DestroyModelMixin, ACLMixin, ListAPIVie
return filters
def get_order_by(self):
return ('paths__ordering', )
return ('paths__ordering', 'id')
def get_queryset(self):
role = Role.Guest if self.request.method in permissions.SAFE_METHODS else Role.Contributor
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment