Skip to content

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

Fix DASHBOARD_PAGINATE_BY in category_detail

michal38434c61fc13
diff --git a/saleor/dashboard/category/views.py b/saleor/dashboard/category/views.py
index 21a114f1fb..8212e2a6ec 100644
--- a/saleor/dashboard/category/views.py
+++ b/saleor/dashboard/category/views.py
@@ -92,7 +92,7 @@ def category_detail(request, pk):
path = root.get_ancestors(include_self=True) if root else []
categories = root.get_children()
categories = get_paginator_items(
- categories, DASHBOARD_PAGINATE_BY, request.GET.get('page'))
+ categories, settings.DASHBOARD_PAGINATE_BY, request.GET.get('page'))
ctx = {'categories': categories, 'path': path, 'root': root}
return TemplateResponse(request, 'dashboard/category/detail.html', ctx)