Sort the list of root cabinets. Thanks to Thomas Plotkowiak
for the request. Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
document properties edited events. Preserve the user that
|
||||
initially creates the document. GitLab issue #433. Thanks
|
||||
to Jesaja Everling (@jeverling) for the report.
|
||||
- Sort the list of root cabinets. Thanks to Thomas Plotkowiak
|
||||
for the request.
|
||||
|
||||
|
||||
2.7.1 (2017-09-03)
|
||||
|
||||
@@ -153,7 +153,9 @@ class CabinetListView(SingleObjectListView):
|
||||
}
|
||||
|
||||
def get_object_list(self):
|
||||
return Cabinet.objects.root_nodes()
|
||||
# Add explicit ordering of root nodes since the queryset returned
|
||||
# is not affected by the model's order Meta option.
|
||||
return Cabinet.objects.root_nodes().order_by('label')
|
||||
|
||||
|
||||
class DocumentCabinetListView(CabinetListView):
|
||||
|
||||
Reference in New Issue
Block a user