Hledáme problémy všude (autocomplete)
This commit is contained in:
parent
97d7cb5cab
commit
1c12793246
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue