Fixes: 1) Add missing filter condition for is_active in descendant product query;
Extra: None;
This commit is contained in:
parent
a88221079e
commit
39332582bc
1 changed files with 1 additions and 0 deletions
|
|
@ -340,6 +340,7 @@ class CategoryFilter(FilterSet):
|
|||
)
|
||||
has_desc_products = Exists(
|
||||
Product.objects.filter(
|
||||
is_active=True,
|
||||
category__tree_id=OuterRef('tree_id'),
|
||||
category__lft__gt=OuterRef('lft'),
|
||||
category__rght__lt=OuterRef('rght'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue