diff --git a/shop/views.py b/shop/views.py index 6622ad6..125b863 100644 --- a/shop/views.py +++ b/shop/views.py @@ -28,14 +28,14 @@ def shop(request, category_slug=None): if category_slug != None: categories = get_object_or_404(Category, slug=category_slug) products = Product.objects.filter(category=categories, is_available=True) - paginator = Paginator(products, 6) + paginator = Paginator(products, 15) page = request.GET.get('page') paged_products = paginator.get_page(page) products_count = products.count() else: products = Product.objects.all().filter(is_available=True) - paginator = Paginator(products, 6) + paginator = Paginator(products, 15) page = request.GET.get('page') paged_products = paginator.get_page(page) products_count = products.count()