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(
|
||||
prezdivka_resitele=""
|
||||
).filter(
|
||||
prezdivka_resitele__startswith=self.q
|
||||
prezdivka_resitele__icontains=self.q
|
||||
).all()
|
||||
return qs
|
||||
|
||||
|
|
Loading…
Reference in a new issue