Browse Source

Hledáme problémy všude (autocomplete)

middleware_test
MaM Web user 3 years ago
parent
commit
1c12793246
  1. 2
      seminar/views/autocomplete.py

2
seminar/views/autocomplete.py

@ -47,7 +47,7 @@ class OdevzdatelnyProblemAutocomplete(autocomplete.Select2QuerySetView):
print(qs) print(qs)
if self.q: if self.q:
qs = qs.filter( qs = qs.filter(
Q(nazev__startswith=self.q)) Q(nazev__icontains=self.q))
return qs return qs
# Ceka na autocomplete v3 # Ceka na autocomplete v3

Loading…
Cancel
Save