From c3a0b94082841b7943e5846701db096202e99118 Mon Sep 17 00:00:00 2001 From: behruz-dev Date: Sat, 4 Oct 2025 15:18:57 +0500 Subject: [PATCH] fix --- core/apps/products/views/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/apps/products/views/product.py b/core/apps/products/views/product.py index 7b65504..3c66ed3 100644 --- a/core/apps/products/views/product.py +++ b/core/apps/products/views/product.py @@ -31,7 +31,7 @@ class ProductCreateApiView(generics.GenericAPIView): { 'success': True, 'message': "product successfully created!", - 'product': self.serializer_class(data).data + 'product': serializers.ProductListSerializer(data).data }, status=201 )