Change model default sort for Book

This commit is contained in:
2023-10-03 23:08:11 +02:00
parent 08226247c7
commit 2d48463474
2 changed files with 18 additions and 1 deletions

View File

@@ -53,7 +53,7 @@ class Book(models.Model):
updated_time = models.DateTimeField(auto_now=True)
class Meta:
ordering = ["authors__last_name", "title"]
ordering = ["title"]
def __str__(self):
return self.title