From 5d7cf9e5ae4411d22aa5d01c3f787943f7658fec Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Mon, 22 Oct 2018 00:23:58 +1300 Subject: [PATCH] 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 --- layerindex/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layerindex/views.py b/layerindex/views.py index 8bd4202..0b2d0a9 100644 --- a/layerindex/views.py +++ b/layerindex/views.py @@ -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)