book sorting fix
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Fri, 14 Oct 2011 10:21:50 +0000 (12:21 +0200)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Fri, 14 Oct 2011 10:21:50 +0000 (12:21 +0200)
apps/catalogue/models/book.py

index 1a141fc..5125532 100755 (executable)
@@ -44,7 +44,7 @@ class Book(models.Model):
 
     class Meta:
         app_label = 'catalogue'
 
     class Meta:
         app_label = 'catalogue'
-        ordering = ['title']
+        ordering = ['title', 'slug']
         verbose_name = _('book')
         verbose_name_plural = _('books')
 
         verbose_name = _('book')
         verbose_name_plural = _('books')