Fixes: ProductViewSet
This commit is contained in:
parent
afcab65d66
commit
52b9f5fa35
2 changed files with 2 additions and 3 deletions
|
|
@ -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},
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue