1
0
mirror of https://github.com/Damillora/Altessimo synced 2024-11-24 06:37:33 +00:00

Sort by what is used to be on the sheet

This commit is contained in:
Damillora 2020-12-17 14:20:48 +07:00
parent 6577d008b9
commit 6b9b0d1458

View File

@ -12,7 +12,7 @@ class Song(models.Model):
impression = models.TextField(blank=True) impression = models.TextField(blank=True)
class Meta: class Meta:
ordering = [ 'romanized_title','title' ] ordering = [ 'composer__romanized_name','arranger__romanized_name','-branch__acronym','romanized_title','title' ]
def __str__(self): def __str__(self):
return "["+self.branch.acronym+"] "+self.title return "["+self.branch.acronym+"] "+self.title