diff --git a/products/views.py b/products/views.py index 21ddd1b..bf67980 100644 --- a/products/views.py +++ b/products/views.py @@ -188,7 +188,7 @@ def product_search(request): cat = CategoryTag.objects.filter(label__iexact=entry).first() # append category tag, and children descendants.append(cat) - descendants.extend(cat.children.all()) + descendants.extend(cat.get_descendants()) products_qs = products_qs.filter(category__in=descendants) # filter by tags