Fixes: 1) Remove prefetch_related for "attributes" in queryset to fix redundant data loading;

Extra: None;
This commit is contained in:
Egor Pavlovich Gorbunov 2025-10-26 16:38:53 +03:00
parent b8f68cf1bd
commit bccf67970f

View file

@ -211,7 +211,7 @@ class CategoryViewSet(EvibesViewSet):
"that only authorized users can access specific data."
)
queryset = Category.objects.all().prefetch_related("parent", "children", "attributes", "tags")
queryset = Category.objects.all().prefetch_related("parent", "children", "tags")
filter_backends = [DjangoFilterBackend]
filterset_class = CategoryFilter
serializer_class = CategoryDetailSerializer