diff options
Diffstat (limited to 'bitbake/lib')
-rwxr-xr-x | bitbake/lib/toaster/toastergui/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index 02548761f0..28ff67b76f 100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py | |||
@@ -324,7 +324,7 @@ def _get_search_results(search_term, queryset, model): | |||
324 | for st in search_term.split(" "): | 324 | for st in search_term.split(" "): |
325 | queries = None | 325 | queries = None |
326 | for field in model.search_allowed_fields: | 326 | for field in model.search_allowed_fields: |
327 | query = Q(**{x+'__icontains': st}) | 327 | query = Q(**{field + '__icontains': st}) |
328 | queries = queries | query if queries else query | 328 | queries = queries | query if queries else query |
329 | 329 | ||
330 | search_object = search_object & queries if search_object else queries | 330 | search_object = search_object & queries if search_object else queries |