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)
|
print(qs)
|
||||||
if self.q:
|
if self.q:
|
||||||
qs = qs.filter(
|
qs = qs.filter(
|
||||||
Q(nazev__startswith=self.q))
|
Q(nazev__icontains=self.q))
|
||||||
return qs
|
return qs
|
||||||
|
|
||||||
# Ceka na autocomplete v3
|
# Ceka na autocomplete v3
|
||||||
|
|
Loading…
Reference in a new issue