We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2662d83 commit 422b5d6Copy full SHA for 422b5d6
books/models.py
@@ -40,7 +40,6 @@ def prefetch_book_resources(queryset):
40
)
41
42
def get_book_data(book):
43
- """Return the book data dict for a single Book instance, matching BookIndex.books property."""
44
has_faculty_resources = hasattr(book, 'prefetched_faculty_resources') and bool(book.prefetched_faculty_resources)
45
has_student_resources = hasattr(book, 'prefetched_student_resources') and bool(book.prefetched_student_resources)
46
try:
0 commit comments