Filter pending books from list display
This commit is contained in:
@ -42,7 +42,9 @@ class List(OrderedCollectionMixin, BookWyrmModel):
|
||||
@property
|
||||
def collection_queryset(self):
|
||||
''' list of books for this shelf, overrides OrderedCollectionMixin '''
|
||||
return self.books.all().order_by('listitem')
|
||||
return self.books.filter(
|
||||
listitem__approved=True
|
||||
).all().order_by('listitem')
|
||||
|
||||
class Meta:
|
||||
''' default sorting '''
|
||||
|
Reference in New Issue
Block a user