Removes a newline.

pull/3940/head
Bertrand Bordage 2017-10-18 22:21:32 +01:00
rodzic 42c38a6af0
commit 77dfab5968
1 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -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)