Paginates lists view
This commit is contained in:
parent
6e0d258c97
commit
d7c32cc314
3 changed files with 26 additions and 6 deletions
|
@ -46,6 +46,10 @@ class List(OrderedCollectionMixin, BookWyrmModel):
|
|||
''' list of books for this shelf, overrides OrderedCollectionMixin '''
|
||||
return self.books.all().order_by('listitem')
|
||||
|
||||
class Meta:
|
||||
''' default sorting '''
|
||||
ordering = ('-updated_date',)
|
||||
|
||||
|
||||
class ListItem(ActivitypubMixin, BookWyrmModel):
|
||||
''' ok '''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue