Skip to content

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

Limit product count on homepage

Paweł Kowalewskib489bd41b7b1
diff --git a/saleor/core/views.py b/saleor/core/views.py
index 48e584cdab..1104238979 100644
--- a/saleor/core/views.py
+++ b/saleor/core/views.py
@@ -3,7 +3,7 @@ from saleor.product.models import Product
def home(request):
- products = Product.objects.get_available_products()
+ products = Product.objects.get_available_products()[:12]
products = products.prefetch_related('categories', 'images',
'variants__stock')
return TemplateResponse(