mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 13:17:50 +02:00
Change model default sort for Book
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user