fix autocomplete řešitelů nemá být case-sensitive
This commit is contained in:
parent
671a049072
commit
e39ccd14b7
1 changed files with 3 additions and 3 deletions
|
@ -23,9 +23,9 @@ class ResitelAutocomplete(LoginRequiredAjaxMixin,autocomplete.Select2QuerySetVie
|
||||||
qs = m.Resitel.objects.all()
|
qs = m.Resitel.objects.all()
|
||||||
if self.q:
|
if self.q:
|
||||||
qs = qs.filter(
|
qs = qs.filter(
|
||||||
Q(osoba__jmeno__startswith=self.q)|
|
Q(osoba__jmeno__istartswith=self.q)|
|
||||||
Q(osoba__prijmeni__startswith=self.q)|
|
Q(osoba__prijmeni__istartswith=self.q)|
|
||||||
Q(osoba__prezdivka__startswith=self.q)
|
Q(osoba__prezdivka__istartswith=self.q)
|
||||||
)
|
)
|
||||||
return qs
|
return qs
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue