Skip to content

Commit

Permalink
updating book filter to exclude
Browse files Browse the repository at this point in the history
  • Loading branch information
staxly committed Nov 20, 2023
1 parent f349c58 commit b50a539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion books/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ class BookIndex(Page):

@property
def books(self):
books = Book.objects.live().filter(locale=self.locale).filter(self.book_state is not 'unlisted').order_by('title')
books = Book.objects.live().filter(locale=self.locale).exclude(book_state='unlisted').order_by('title')
book_data = []
for book in books:
has_faculty_resources = BookFacultyResources.objects.filter(book_faculty_resource=book).exists()
Expand Down

0 comments on commit b50a539

Please sign in to comment.