Fixes queryset for shelf page json

This commit is contained in:
Mouse Reeve
2021-01-10 07:54:58 -08:00
parent a1e8d5c7c2
commit 6eb7872598
2 changed files with 11 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class Shelf(OrderedCollectionMixin, BookWyrmModel):
@property
def collection_queryset(self):
''' list of books for this shelf, overrides OrderedCollectionMixin '''
return self.books
return self.books.all()
def get_remote_id(self):
''' shelf identifier instead of id '''