|
@ -14,6 +14,8 @@ class SkolaAutocomplete(autocomplete.Select2QuerySetView): |
|
|
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] |
|
|
|
|
|
|
|
|