From 9891ea5fbf1f70686612a66fcb6bdfc04a9a037c Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 18 Sep 2020 15:19:23 +0200 Subject: [PATCH] Fixes #4080: Missing search no-results page. --- src/search/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/search/views.py b/src/search/views.py index 4d792e439..970734ad7 100644 --- a/src/search/views.py +++ b/src/search/views.py @@ -179,7 +179,7 @@ def search_books(query): except Book.DoesNotExist: return False - results = filter(ensure_exists, results) + results = [r for r in results if ensure_exists(r)] return results @@ -214,7 +214,7 @@ def search_pictures(query): except Picture.DoesNotExist: return False - results = filter(ensure_exists, results) + results = [r for r in results if ensure_exists(r)] return results -- 2.20.1