File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ def tkeywords_autocomplete(request: WSGIRequest, thesaurusid):
151
151
qs = ThesaurusKeywordLabel .objects .filter (lang = lang , keyword_id__in = all_keywords_qs ).order_by ("label" )
152
152
# if q := request.query_params.get("q", None):
153
153
if q := request .GET .get ("q" , None ):
154
- qs = qs .filter (label__istartswith = q )
154
+ qs = qs .filter (label__icontains = q )
155
155
156
156
ret = []
157
157
for tkl in qs .all ():
@@ -176,7 +176,7 @@ def categories_autocomplete(request: WSGIRequest):
176
176
qs = TopicCategory .objects .order_by ("gn_description" )
177
177
178
178
if q := request .GET .get ("q" , None ):
179
- qs = qs .filter (gn_description__istartswith = q )
179
+ qs = qs .filter (gn_description__icontains = q )
180
180
181
181
ret = []
182
182
for record in qs .all ():
@@ -194,7 +194,7 @@ def licenses_autocomplete(request: WSGIRequest):
194
194
qs = License .objects .order_by ("name" )
195
195
196
196
if q := request .GET .get ("q" , None ):
197
- qs = qs .filter (name__istartswith = q )
197
+ qs = qs .filter (name__icontains = q )
198
198
199
199
ret = []
200
200
for record in qs .all ():
You can’t perform that action at this time.
0 commit comments