diff --git a/core/filters.py b/core/filters.py index 57f4a588..78979799 100644 --- a/core/filters.py +++ b/core/filters.py @@ -336,8 +336,8 @@ class CategoryFilter(FilterSet): def filter_whole_categories(self, queryset, _name, value): if value: - return queryset.filter(product_set__isnull=False).distinct() - return queryset.filter(product_set__isnull=True).distinct() + return queryset.filter(products__isnull=False).distinct() + return queryset.filter(products__isnull=True).distinct() def filter_parent_uuid(self, queryset, _name, value): if value in ("", "null", "None"):