Fixes: get_ancestors -> get_descendants
This commit is contained in:
parent
2d1092eb7c
commit
b4b6c7cacc
1 changed files with 1 additions and 1 deletions
|
|
@ -188,7 +188,7 @@ class ProductFilter(FilterSet):
|
|||
return queryset.none()
|
||||
|
||||
if include_children:
|
||||
descendants = root.get_ancestors(include_self=True)
|
||||
descendants = root.get_descendants(include_self=True)
|
||||
return queryset.filter(category__in=descendants)
|
||||
else:
|
||||
return queryset.filter(category__uuid=value)
|
||||
|
|
|
|||
Loading…
Reference in a new issue