|
|
@ -23,9 +23,9 @@ class ResitelAutocomplete(LoginRequiredAjaxMixin,autocomplete.Select2QuerySetVie |
|
|
|
qs = m.Resitel.objects.all() |
|
|
|
if self.q: |
|
|
|
qs = qs.filter( |
|
|
|
Q(osoba__jmeno__startswith=self.q)| |
|
|
|
Q(osoba__prijmeni__startswith=self.q)| |
|
|
|
Q(osoba__prezdivka__startswith=self.q) |
|
|
|
Q(osoba__jmeno__istartswith=self.q)| |
|
|
|
Q(osoba__prijmeni__istartswith=self.q)| |
|
|
|
Q(osoba__prezdivka__istartswith=self.q) |
|
|
|
) |
|
|
|
return qs |
|
|
|
|
|
|
|