mirror of
https://github.com/flibusta-apps/book_library_server.git
synced 2025-12-06 15:15:36 +01:00
Add annotation_exists field to Book and Author
This commit is contained in:
@@ -10,4 +10,4 @@ class AuthorTGRMSearchService(TRGMSearchService):
|
||||
Author.Meta.table.c.first_name,
|
||||
Author.Meta.table.c.middle_name
|
||||
]
|
||||
PREFETCH_RELATED = ["source"]
|
||||
PREFETCH_RELATED = ["source", "annotations"]
|
||||
|
||||
@@ -13,7 +13,7 @@ class BookTGRMSearchService(TRGMSearchService):
|
||||
FIELDS = [
|
||||
BookDB.Meta.table.c.title
|
||||
]
|
||||
PREFETCH_RELATED = ["source", "authors"]
|
||||
PREFETCH_RELATED = ["source", "authors", "annotations"]
|
||||
FILTERS = [
|
||||
BookDB.Meta.table.c.is_deleted == False,
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user