From 005a759b816b0b28d1a2920f6b84ab239b98e091 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Wed, 10 May 2023 19:24:33 +0200 Subject: [PATCH] Update umap/views.py Co-authored-by: Adrien nayrat --- umap/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/views.py b/umap/views.py index 2c193fa9..df17c18b 100644 --- a/umap/views.py +++ b/umap/views.py @@ -192,7 +192,7 @@ class Search(TemplateView, PaginatorMixin): if q: where = "to_tsvector(name) @@ websearch_to_tsquery(%s)" if getattr(settings, "UMAP_USE_UNACCENT", False): - where = "to_tsvector(unaccent(name)) @@ websearch_to_tsquery(unaccent(%s))" # noqa + where = "to_tsvector('umapdict',name) @@ websearch_to_tsquery('umapdict',%s)" # noqa results = Map.objects.filter(share_status=Map.PUBLIC) results = results.extra(where=[where], params=[q]) results = results.order_by("-modified_at")