From 77dfab59686fe7cd4007bdaadda6761a32bfe491 Mon Sep 17 00:00:00 2001 From: Bertrand Bordage Date: Wed, 18 Oct 2017 22:21:32 +0100 Subject: [PATCH] Removes a newline. --- wagtail/contrib/postgres_search/backend.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wagtail/contrib/postgres_search/backend.py b/wagtail/contrib/postgres_search/backend.py index ce83b42a62..2b17ec77b9 100644 --- a/wagtail/contrib/postgres_search/backend.py +++ b/wagtail/contrib/postgres_search/backend.py @@ -124,9 +124,8 @@ class Index(object): ids_and_objs = {} for obj in objs: obj._search_vector = ( - ADD([ - SearchVector(Value(text), weight=weight, config=config) - for text, weight in obj._body_]) + ADD([SearchVector(Value(text), weight=weight, config=config) + for text, weight in obj._body_]) if obj._body_ else SearchVector(Value(''))) ids_and_objs[obj._object_id] = obj index_entries = IndexEntry._default_manager.using(self.db_alias)