diff --git a/shop/views.py b/shop/views.py index 3138e0ae..35f089cb 100644 --- a/shop/views.py +++ b/shop/views.py @@ -171,7 +171,7 @@ class ShopIndexView(ListView): def get_queryset(self): queryset = super(ShopIndexView, self).get_queryset() - return queryset.order_by('category__name', 'price') + return queryset.order_by('category__name', 'price', 'name') def get_context_data(self, **kwargs): context = super(ShopIndexView, self).get_context_data(**kwargs)