mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 13:17:50 +02:00
Fix books default ordering
This commit is contained in:
@@ -52,6 +52,10 @@ class Book(models.Model):
|
||||
creation_time = models.DateTimeField(auto_now_add=True)
|
||||
updated_time = models.DateTimeField(auto_now=True)
|
||||
|
||||
class Meta:
|
||||
ordering = ["authors__last_name", "title"]
|
||||
verbose_name_plural = "Rolling stock"
|
||||
|
||||
def __str__(self):
|
||||
return self.title
|
||||
|
||||
|
Reference in New Issue
Block a user