From 1c1279324685fe83ed4bd5babaeacbfc4e69878a Mon Sep 17 00:00:00 2001 From: MaM Web user Date: Sat, 4 Sep 2021 21:19:13 +0200 Subject: [PATCH] =?UTF-8?q?Hled=C3=A1me=20probl=C3=A9my=20v=C5=A1ude=20(au?= =?UTF-8?q?tocomplete)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/views/autocomplete.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seminar/views/autocomplete.py b/seminar/views/autocomplete.py index 13905fd6..fbb2b1e7 100644 --- a/seminar/views/autocomplete.py +++ b/seminar/views/autocomplete.py @@ -47,7 +47,7 @@ class OdevzdatelnyProblemAutocomplete(autocomplete.Select2QuerySetView): print(qs) if self.q: qs = qs.filter( - Q(nazev__startswith=self.q)) + Q(nazev__icontains=self.q)) return qs # Ceka na autocomplete v3