Fix autocomplete umírající na mezeru
This commit is contained in:
parent
f777252a96
commit
33ce4a5db5
1 changed files with 3 additions and 1 deletions
|
@ -13,7 +13,9 @@ class SkolaAutocomplete(autocomplete.Select2QuerySetView):
|
|||
if self.q:
|
||||
words = self.q.split(' ') #TODO re split podle bileho znaku
|
||||
partq = Q()
|
||||
for w in words: # Hledej po slovech, zahoď čárky a tečky z konců.
|
||||
for w in words: # Hledej po slovech, zahoď čárky a tečky z konců.
|
||||
if len(w) == 0:
|
||||
continue
|
||||
if w[-1] in (".",","):
|
||||
w = w[:-1]
|
||||
|
||||
|
|
Loading…
Reference in a new issue