Filter pending books from list display
This commit is contained in:
parent
482c464979
commit
8fb08e09fd
2 changed files with 9 additions and 3 deletions
|
@ -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 '''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue