From 79cec1d3f7d8caebed087c482709d8184ab7bc64 Mon Sep 17 00:00:00 2001 From: mortezaei Date: Sat, 31 May 2025 17:43:55 +0330 Subject: [PATCH] fix: update search fields in BookListView --- apps/library/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/library/views.py b/apps/library/views.py index 111f10d..c13f010 100644 --- a/apps/library/views.py +++ b/apps/library/views.py @@ -89,7 +89,7 @@ class BookListView(ListAPIView): serializer_class = BookSerializer permission_classes = (IsAuthenticated,) filter_backends = [SearchFilter] - search_fields = ['title', 'summary', 'author'] + search_fields = ['title', 'summary', 'publisher', 'isbn'] @book_list_swagger def get(self, request, *args, **kwargs):