From 8f273d4fe46939b30ce364903aab0ed0f675ad34 Mon Sep 17 00:00:00 2001 From: Bertrand Bordage Date: Mon, 21 Aug 2017 16:47:55 +0200 Subject: [PATCH] =?UTF-8?q?PostgresSearchResult=20=E2=86=92=20PostgresSear?= =?UTF-8?q?chResults.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wagtail/contrib/postgres_search/backend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wagtail/contrib/postgres_search/backend.py b/wagtail/contrib/postgres_search/backend.py index 5887e488b..3a877f306 100644 --- a/wagtail/contrib/postgres_search/backend.py +++ b/wagtail/contrib/postgres_search/backend.py @@ -285,7 +285,7 @@ class PostgresSearchQuery(BaseSearchQuery): return self.search_in_fields(queryset, search_query, start, stop) -class PostgresSearchResult(BaseSearchResults): +class PostgresSearchResults(BaseSearchResults): def get_config(self): queryset = self.query.queryset return self.backend.get_index_for_model( @@ -335,7 +335,7 @@ class PostgresSearchAtomicRebuilder(PostgresSearchRebuilder): class PostgresSearchBackend(BaseSearchBackend): query_class = PostgresSearchQuery - results_class = PostgresSearchResult + results_class = PostgresSearchResults rebuilder_class = PostgresSearchRebuilder atomic_rebuilder_class = PostgresSearchAtomicRebuilder