mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
Allow searching for uncategorised recipes in the comparison search
It's a bit crude, but accept '' or "" as meaning search for entries with an empty category. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
parent
c98417f891
commit
ca9c4ffa66
|
@ -936,7 +936,10 @@ class ClassicRecipeSearchView(RecipeSearchView):
|
||||||
if cover_verified:
|
if cover_verified:
|
||||||
init_qs = init_qs.filter(cover_verified=(cover_verified=='1'))
|
init_qs = init_qs.filter(cover_verified=(cover_verified=='1'))
|
||||||
if category:
|
if category:
|
||||||
init_qs = init_qs.filter(classic_category__icontains=category)
|
if category == "''" or category == '""':
|
||||||
|
init_qs = init_qs.filter(classic_category='')
|
||||||
|
else:
|
||||||
|
init_qs = init_qs.filter(classic_category__icontains=category)
|
||||||
if query_string.strip():
|
if query_string.strip():
|
||||||
order_by = (Lower('pn'), 'layerbranch__layer')
|
order_by = (Lower('pn'), 'layerbranch__layer')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user