Skip to content

Commit

Permalink
fix: Order music scores by document_id rather than id
Browse files Browse the repository at this point in the history
  • Loading branch information
hepplerj committed Aug 16, 2024
1 parent 6e747c0 commit d1ce075
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion denig/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ def get(self, request, *args, **kwargs):
class MusicListView(generic.View):
def get(self, request, *args, **kwargs):
hymnal_list = (
Document.objects.filter(doctype="music score").order_by("id").distinct()
Document.objects.filter(doctype="music score")
.order_by("document_id")
.distinct()
)
return render(
request,
Expand Down

0 comments on commit d1ce075

Please sign in to comment.