Paginates lists view

This commit is contained in:
Mouse Reeve
2021-01-31 17:34:06 -08:00
parent 6e0d258c97
commit d7c32cc314
3 changed files with 26 additions and 6 deletions

View File

@ -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 '''