diff --git a/python/search.py b/python/search.py index 46b6b12..5ac79a5 100644 --- a/python/search.py +++ b/python/search.py @@ -16,7 +16,7 @@ def search_book_cmd(search_strings, search_description=False): print format % (book.isbn, b_id, title, authors_str) def search_book(search_strings, search_description=False): - basic_query = Book.objects + basic_query = Book.objects.select_related('person__person','id') for word in search_strings: basic_query=basic_query.filter(Q(title__icontains=word) | Q(subtitle__icontains=word) |