Hledáme problémy všude (autocomplete)

This commit is contained in:
MaM Web user 2021-09-04 21:19:13 +02:00
parent 97d7cb5cab
commit 1c12793246

View file

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