From 35d0a09728331a0aa2c70a6c2ed0631dff4a676e Mon Sep 17 00:00:00 2001 From: almelid Date: Mon, 27 Sep 2010 17:57:24 +0000 Subject: [PATCH] =?UTF-8?q?la=20p=C3=A5=20en=20select=5Frelated()=20til=20?= =?UTF-8?q?basic=5Fquery=20i=20search.py.=20Dette=20for=20=C3=A5=20s=C3=B8?= =?UTF-8?q?rge=20for=20f=C3=A6rre=20sp=C3=B8rringer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) |