diff --git a/core/viewsets.py b/core/viewsets.py index a6e92631..fb7221ea 100644 --- a/core/viewsets.py +++ b/core/viewsets.py @@ -469,7 +469,7 @@ class WishlistViewSet(EvibesViewSet): ) @action(detail=True, methods=["post"], url_path="add_wishlist_product") - def add_wishlist_product(self, request, *_args, **kwargs): + def add_wishlist_product(self, request, **kwargs): serializer = AddWishlistProductSerializer(data=request.data) serializer.is_valid(raise_exception=True) try: @@ -486,7 +486,7 @@ class WishlistViewSet(EvibesViewSet): return Response(status=status.HTTP_404_NOT_FOUND) @action(detail=True, methods=["post"], url_path="remove_wishlist_product") - def remove_wishlist_product(self, request, *_args, **kwargs): + def remove_wishlist_product(self, request, **kwargs): serializer = RemoveWishlistProductSerializer(data=request.data) serializer.is_valid(raise_exception=True) try: @@ -503,7 +503,7 @@ class WishlistViewSet(EvibesViewSet): return Response(status=status.HTTP_404_NOT_FOUND) @action(detail=True, methods=["post"], url_path="bulk_add_wishlist_product") - def bulk_add_wishlist_products(self, request, *_args, **kwargs): + def bulk_add_wishlist_products(self, request, **kwargs): serializer = BulkAddWishlistProductSerializer(data=request.data) serializer.is_valid(raise_exception=True) try: @@ -520,7 +520,7 @@ class WishlistViewSet(EvibesViewSet): return Response(status=status.HTTP_404_NOT_FOUND) @action(detail=True, methods=["post"], url_path="bulk_remove_wishlist_product") - def bulk_remove_wishlist_products(self, request, *_args, **kwargs): + def bulk_remove_wishlist_products(self, request, **kwargs): serializer = BulkRemoveWishlistProductSerializer(data=request.data) serializer.is_valid(raise_exception=True) try: @@ -551,8 +551,7 @@ class AddressViewSet(EvibesViewSet): return AddressAutocompleteInputSerializer return AddressSerializer - @action(detail=False, methods=["post"]) - def create(self, request): + def create(self, request, **kwargs): serializer = AddressCreateSerializer(data=request.data) serializer.is_valid(raise_exception=True)