Fix: lepší hledání podle přezdívky
This commit is contained in:
parent
711693c57b
commit
3b6e238323
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ class PublicResitelAutocomplete(LoginRequiredAjaxMixin, autocomplete.Select2Quer
|
||||||
).exclude(
|
).exclude(
|
||||||
prezdivka_resitele=""
|
prezdivka_resitele=""
|
||||||
).filter(
|
).filter(
|
||||||
prezdivka_resitele__startswith=self.q
|
prezdivka_resitele__icontains=self.q
|
||||||
).all()
|
).all()
|
||||||
return qs
|
return qs
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue