Skip to content

Commit

Permalink
Fix queryset in category_brief_list endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
earlinn committed Dec 28, 2023
1 parent 21246cf commit a205302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/api/products_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def category_brief_list(self, request):
Shows brief information about categories without indicating subcategories
and top products of these categories.
"""
categories_list = self.get_queryset()
categories_list = Category.objects.all()
serializer = self.get_serializer_class()
return response.Response(
serializer(
Expand Down

0 comments on commit a205302

Please sign in to comment.