Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add possibility to filter out products without categories

IKarbowiak2175a98b45d4
diff --git a/saleor/dashboard/product/filters.py b/saleor/dashboard/product/filters.py
index 8d35141c5a..b89151db0e 100644
--- a/saleor/dashboard/product/filters.py
+++ b/saleor/dashboard/product/filters.py
@@ -40,6 +40,7 @@ class ProductFilter(SortedFilterSet):
label=pgettext_lazy("Product list filter label", "Category"),
field_name="category",
queryset=Category.objects.all(),
+ null_label="---------",
)
product_type = ModelMultipleChoiceFilter(
label=pgettext_lazy("Product list filter label", "Product type"),