Fixes: ProductViewSet

This commit is contained in:
Egor Pavlovich Gorbunov 2025-06-08 16:57:32 +03:00
parent afcab65d66
commit 52b9f5fa35
2 changed files with 2 additions and 3 deletions

View file

@ -206,7 +206,6 @@ ORDER_SCHEMA = {
],
responses={status.HTTP_200_OK: OrderSimpleSerializer(many=True), **BASE_ERRORS},
),
# ... other actions unchanged
"retrieve": extend_schema(
summary=_("retrieve a single order (detailed view)"),
responses={status.HTTP_200_OK: OrderDetailSerializer(), **BASE_ERRORS},

View file

@ -193,8 +193,8 @@ class ProductViewSet(EvibesViewSet):
action_serializer_classes = {
"list": ProductSimpleSerializer,
}
lookup_field = "lookup"
lookup_url_kwarg = "lookup"
lookup_field = "lookup_value"
lookup_url_kwarg = "lookup_value"
def get_queryset(self):
qs = super().get_queryset()