|
@ -13,7 +13,9 @@ class SkolaAutocomplete(autocomplete.Select2QuerySetView): |
|
|
if self.q: |
|
|
if self.q: |
|
|
words = self.q.split(' ') #TODO re split podle bileho znaku |
|
|
words = self.q.split(' ') #TODO re split podle bileho znaku |
|
|
partq = Q() |
|
|
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 (".",","): |
|
|
if w[-1] in (".",","): |
|
|
w = w[:-1] |
|
|
w = w[:-1] |
|
|
|
|
|
|
|
|