Fixes: 1) Remove prefetch_related for "attributes" in queryset to fix redundant data loading;
Extra: None;
This commit is contained in:
parent
b8f68cf1bd
commit
bccf67970f
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue