From bf6393a2582cfdb46e170f5724c6e4ce197d91e2 Mon Sep 17 00:00:00 2001 From: Birger Schacht Date: Thu, 22 Feb 2024 09:57:41 +0100 Subject: [PATCH] fix: another place where we should normalize strings --- viecpro_typesense/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viecpro_typesense/handlers.py b/viecpro_typesense/handlers.py index 33bba42..8e01b09 100644 --- a/viecpro_typesense/handlers.py +++ b/viecpro_typesense/handlers.py @@ -61,7 +61,7 @@ def func(x): return fixstring(x.split("<")[0]) if x else "" class RelatedRelationEntityFieldHandler(Handler): def func(x): return { - "name": str(x), + "name": fixstring(str(x)), "object_id": str(x.id), "model": str(x.__class__.__name__), }