views: fix incorrect class usage in ClassSearchView

This was copy-pasted from the DistroSearchView and I clearly forgot to
replace the reference here.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
Paul Eggleton 2018-10-22 00:23:58 +13:00
parent 0bfb98971c
commit 5d7cf9e5ae

View File

@ -807,7 +807,7 @@ class ClassSearchView(ListView):
return init_qs.order_by('name', 'layerbranch__layer')
# Be consistent with RecipeSearchView
return Distro.objects.none()
return BBClass.objects.none()
def get_context_data(self, **kwargs):
context = super(ClassSearchView, self).get_context_data(**kwargs)