From a324998c4c4f80db1aaac6495a783a7b161b59c3 Mon Sep 17 00:00:00 2001 From: behruz-dev Date: Sat, 4 Oct 2025 14:59:50 +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 f3168a0..7b65504 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) + 'product': self.serializer_class(data).data }, status=201 )