From 6b9b0d1458168423ac562e5ea6597a6a547ddee2 Mon Sep 17 00:00:00 2001 From: Damillora Date: Thu, 17 Dec 2020 14:20:48 +0700 Subject: [PATCH] Sort by what is used to be on the sheet --- songs/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/songs/models.py b/songs/models.py index 7d19d57..e27a328 100644 --- a/songs/models.py +++ b/songs/models.py @@ -12,7 +12,7 @@ class Song(models.Model): impression = models.TextField(blank=True) class Meta: - ordering = [ 'romanized_title','title' ] + ordering = [ 'composer__romanized_name','arranger__romanized_name','-branch__acronym','romanized_title','title' ] def __str__(self): return "["+self.branch.acronym+"] "+self.title