From d94869cbf5d013fe57c545d0abf1dbc13b46fa6a Mon Sep 17 00:00:00 2001 From: adhemar Date: Mon, 31 May 2021 15:18:54 -0300 Subject: [PATCH] modify search to run partial searches rather than starts_with searches --- machado/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/machado/forms.py b/machado/forms.py index a1e98306..56e164ad 100644 --- a/machado/forms.py +++ b/machado/forms.py @@ -55,6 +55,6 @@ def search(self): ) for i in q.split(): - result |= sqs.filter(text__startswith=i) + result |= sqs.filter(text__contains=i) return result