Add 'name' field to BotProductDetailView response

This commit is contained in:
Parsa Nazer
2025-08-05 00:28:03 +03:30
parent 703bd7d4f3
commit 71cd02f52b
+1
View File
@@ -467,6 +467,7 @@ class BotProductDetailView(APIView):
product = get_object_or_404(ProductModel, pk=pk, show_in_bot=True)
return Response({
'name': product.name,
'banner' : product.bot_banner,
'link': f'https://heymlz.com/product/{product.slug}'
})