diff options
-rw-r--r-- | bitbake/lib/toaster/toastergui/typeaheads.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/typeaheads.py b/bitbake/lib/toaster/toastergui/typeaheads.py index 9db31827ba..dd4b7f5057 100644 --- a/bitbake/lib/toaster/toastergui/typeaheads.py +++ b/bitbake/lib/toaster/toastergui/typeaheads.py | |||
@@ -121,12 +121,12 @@ class RecipesTypeAhead(ToasterTypeAhead): | |||
121 | return results | 121 | return results |
122 | 122 | ||
123 | class ProjectsTypeAhead(ToasterTypeAhead): | 123 | class ProjectsTypeAhead(ToasterTypeAhead): |
124 | """ Typeahead for all the projects """ | 124 | """ Typeahead for all the projects, except for command line builds """ |
125 | def __init__(self): | 125 | def __init__(self): |
126 | super(ProjectsTypeAhead, self).__init__() | 126 | super(ProjectsTypeAhead, self).__init__() |
127 | 127 | ||
128 | def apply_search(self, search_term, prj, request): | 128 | def apply_search(self, search_term, prj, request): |
129 | projects = Project.objects.all().order_by("name") | 129 | projects = Project.objects.exclude(is_default=True).order_by("name") |
130 | 130 | ||
131 | primary_results = projects.filter(name__istartswith=search_term) | 131 | primary_results = projects.filter(name__istartswith=search_term) |
132 | secondary_results = projects.filter(name__icontains=search_term).exclude(pk__in=primary_results) | 132 | secondary_results = projects.filter(name__icontains=search_term).exclude(pk__in=primary_results) |