Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix category index view for displaying products with same name
ridiazb656f7c670da
diff --git a/saleor/product/views.py b/saleor/product/views.pyindex 88d3457c5a..fa381c5200 100644--- a/saleor/product/views.py+++ b/saleor/product/views.py@@ -118,7 +118,7 @@ def category_index(request, path, category_id):return redirect('product:category', permanent=True, path=actual_path,category_id=category_id)products = (products_with_details(user=request.user)- .filter(categories__name=category)+ .filter(categories__id=category.id).order_by('name'))product_filter = ProductFilter(request.GET, queryset=products, category=category)